Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
net_tun.h
Go to the documentation of this file.
1 
10 #ifndef NET_TUN_H
11 #define NET_TUN_H
12 
13 #include <pbl.h>
14 
18 typedef struct ksnTunClass {
19 
20  PblMap* list;
21  PblMap* map;
22  void *ke;
23 
24 } ksnTunClass;
25 
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 
32 ksnTunClass *ksnTunInit(void *ke);
33 void ksnTunDestroy(ksnTunClass *ktun);
34 void ksnTunCreate(ksnTunClass * ktun, uint16_t port, char *to,
35  uint16_t to_port, char *to_ip);
36 
38 char *ksnTunListShow(ksnTunClass * ktun);
39 void *ksnTunListRemove(ksnTunClass *ktun, int fd);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* NET_TUN_H */
void ksnTunDestroy(ksnTunClass *ktun)
void ksnTunCreate(ksnTunClass *ktun, uint16_t port, char *to, uint16_t to_port, char *to_ip)
struct ksnTunClass ksnTunClass
File: net_tun.h Author: Kirill Scherba.
PblMap * map
Hash Map to store KSNet tunnel table.
Definition: net_tun.h:21
PblMap * list
List to store KSNet tunnel servers.
Definition: net_tun.h:20
KSNet core received data structure.
Definition: net_com.h:107
char * ksnTunListShow(ksnTunClass *ktun)
#define rd
void * ksnTunListRemove(ksnTunClass *ktun, int fd)
#define ke
File: net_tun.h Author: Kirill Scherba.
Definition: net_tun.h:18
int cmd_tun_cb(ksnTunClass *ktun, ksnCorePacketData *rd)
ksnTunClass * ksnTunInit(void *ke)
void * ke
Pointer to ksnTermClass.
Definition: net_tun.h:22
int fd
Definition: teol0cli.c:22