Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vpn.h
Go to the documentation of this file.
1 
11 #ifndef VPN_H
12 #define VPN_H
13 
14 #include <ev.h>
15 #include <stdio.h>
16 #include <pbl.h>
17 
18 
22 typedef struct ksnVpnClass {
23 
25  PblMap *ksnet_vpn_map;
26  struct device *ksn_tap_dev;
27  char *tuntap_name;
28  int tuntap_fd;
29  void *ke;
30  ev_io *tuntap_io;
31 
32 } ksnVpnClass;
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 //ksnVpnClass
39 void *ksnVpnInit(void *ke);
40 void ksnVpnDestroy(void *vpn);
41 
42 int cmd_vpn_cb(ksnVpnClass *kvpn, char *from, void *data, size_t data_len);
43 void ksnVpnListShow(ksnVpnClass *kvpn);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* VPN_H */
int cmd_vpn_cb(ksnVpnClass *kvpn, char *from, void *data, size_t data_len)
const char data[]
Make it with: gcc -o post-callback post-callback.c -lcurl.
Definition: post-callback.c:23
char * tuntap_name
TUNTAP Device name.
Definition: vpn.h:27
void ksnVpnDestroy(void *vpn)
int ksnet_vpn_started
VPN Started.
Definition: vpn.h:24
Definition: tuntap.h:132
struct ksnVpnClass ksnVpnClass
File: vpn.h Author: Kirill Scherba.
void * ke
Pointer to Event manager class object.
Definition: vpn.h:29
void * ksnVpnInit(void *ke)
ev_io * tuntap_io
Tuntap watcher.
Definition: vpn.h:30
#define ke
PblMap * ksnet_vpn_map
MAC Hash Map.
Definition: vpn.h:25
struct device * ksn_tap_dev
TUNTAP Device.
Definition: vpn.h:26
int tuntap_fd
TUNTAP Device FD.
Definition: vpn.h:28
File: vpn.h Author: Kirill Scherba.
Definition: vpn.h:22
void ksnVpnListShow(ksnVpnClass *kvpn)