Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teogw.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "net_multi.h"

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" }
 

Detailed Description

Author
Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru

Connect to multi networks with one call

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

Macro Definition Documentation

#define TEONET_NUM   2

Referenced by main().

#define TGW_VERSION   "0.0.2"

Referenced by event_cb(), and main().

Function Documentation

void event_cb ( ksnetEvMgrClass ke,
ksnetEvMgrEvents  event,
void *  data,
size_t  data_len,
void *  user_data 
)
int main ( int  argc,
char **  argv 
)

Variable Documentation

const char* TEONET_NAMES[] = { "teo-gw", "teo-gw-local" }

Referenced by main().

const char* TEONET_NETWORKS[] = { "local", "teonet" }

Referenced by main().

const int TEONET_PORTS[] = { 9040, 9042 }

Referenced by main().