Teonet library
0.4.7
|
Macros | |
#define | TGW_VERSION "0.0.2" |
#define | TEONET_NUM 2 |
Functions | |
void | event_cb (ksnetEvMgrClass *ke, ksnetEvMgrEvents event, void *data, size_t data_len, void *user_data) |
Teonet event handler. More... | |
int | main (int argc, char **argv) |
Main application function. More... | |
Variables | |
const int | TEONET_PORTS [] = { 9040, 9042 } |
const char * | TEONET_NAMES [] = { "teo-gw", "teo-gw-local" } |
const char * | TEONET_NETWORKS [] = { "local", "teonet" } |
Connect to and manage some teo-networks in at one time (without using threads). The networks are divided by the host port number and (or) network name. Use config file to connect networks to it r-hosts.
Created on Mart 27, 2015, 19:51 PM Updated on September 27, 2017, 21:41 PM
#define TEONET_NUM 2 |
Referenced by main().
#define TGW_VERSION "0.0.2" |
Referenced by event_cb(), and main().
void event_cb | ( | ksnetEvMgrClass * | ke, |
ksnetEvMgrEvents | event, | ||
void * | data, | ||
size_t | data_len, | ||
void * | user_data | ||
) |
Teonet event handler.
ke | |
event | |
data | |
data_len | |
user_data |
References DEBUG, EV_K_CONNECTED, EV_K_DISCONNECTED, EV_K_STARTED, ksnCorePacketData::from, ksnetEvMgrClass::km, ksn_printf, ksnetEvMgrGetHostName(), teonet_cfg::network, rd, ksnetEvMgrClass::teo_cfg, teoMultiAddNet(), teoSetAppType(), teoSetAppVersion(), and TGW_VERSION.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Main application function.
argc | Number of parameters |
argv | Parameters array |
References ksnMultiData::argc, ksnMultiData::argv, ksnMultiData::event_cb, event_cb(), ksnMultiDestroy(), ksnMultiInit(), ksnMultiData::names, ksnMultiData::networks, ksnMultiData::num, ksnMultiData::ports, ksnMultiData::run, teoGetLibteonetVersion(), teoMultiRun(), TEONET_NAMES, TEONET_NETWORKS, TEONET_NUM, TEONET_PORTS, and TGW_VERSION.
const char* TEONET_NAMES[] = { "teo-gw", "teo-gw-local" } |
Referenced by main().
const int TEONET_PORTS[] = { 9040, 9042 } |
Referenced by main().