VSF Documented
vsf_linux_telnetd.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_LINUX_TELNETD_H__
19#define __VSF_LINUX_TELNETD_H__
20
21/*============================ INCLUDES ======================================*/
22
24
25#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
26# include "../../include/sys/socket.h"
27# include "../../include/netinet/in.h"
28#else
29# include <sys/socket.h>
30# include <netinet/in.h>
31#endif
32
33#undef PUBLIC_CONST
34#if defined(__VSF_LINUX_TELNETD_CLASS_IMPLEMENT)
35# undef __VSF_LINUX_TELNETD_CLASS_IMPLEMENT
36# define __VSF_CLASS_IMPLEMENT__
37# define PUBLIC_CONST
38#elif defined(__VSF_LINUX_TELNETD_CLASS_INHERIT__)
39# undef __VSF_LINUX_TELNETD_CLASS_INHERIT__
40# define __VSF_CLASS_INHERIT__
41# define PUBLIC_CONST
42#else
43# define PUBLIC_CONST const
44#endif
45
46#include "utilities/ooc_class.h"
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
52/*============================ MACROS ========================================*/
53/*============================ MACROFIED FUNCTIONS ===========================*/
54/*============================ TYPES =========================================*/
55
57 public_member(
59 PUBLIC_CONST uint8_t backlog;
60 )
61
62 private_member(
63 int listener_sock;
64 )
65};
66
67/*============================ GLOBAL VARIABLES ==============================*/
68/*============================ PROTOTYPES ====================================*/
69
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif
77/* EOF */
Definition vsf_linux_telnetd.h:56
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
void vsf_linux_telnetd_thread(vsf_linux_telnetd_t *telnetd)
Definition vsf_linux_telnetd.c:45
#define PUBLIC_CONST
Definition vsf_linux_telnetd.h:43