Teonet library
0.4.7
|
Macros | |
#define | TTUN_VERSION VERSION |
#define | TUN_PEER "teotun" |
#define | TUN_PEER_PORT 22 |
#define | TUN_PORT 7522 |
Functions | |
void | event_cb (ksnetEvMgrClass *ke, ksnetEvMgrEvents event, void *data, size_t data_len, void *user_data) |
Teonet Events callback. More... | |
int | main (int argc, char **argv) |
Main Teotun application function. More... | |
#define TUN_PEER "teotun" |
Referenced by event_cb().
#define TUN_PEER_PORT 22 |
Referenced by event_cb().
#define TUN_PORT 7522 |
Referenced by event_cb().
void event_cb | ( | ksnetEvMgrClass * | ke, |
ksnetEvMgrEvents | event, | ||
void * | data, | ||
size_t | data_len, | ||
void * | user_data | ||
) |
Teonet Events callback.
ke | |
event | |
data | |
data_len | |
user_data |
References EV_K_STARTED, ksnTunCreate(), ksnetEvMgrClass::ktun, TUN_PEER, TUN_PEER_PORT, and TUN_PORT.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Main Teotun application function.
argc | Number of parameters |
argv | Parameters array |
References event_cb(), ke, ksnetEvMgrInit(), ksnetEvMgrRun(), READ_CONFIGURATION, READ_OPTIONS, and TTUN_VERSION.