Teonet library
0.4.7
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include "ev_mgr.h"
Macros | |
#define | TMULTI_T_VERSION VERSION |
#define | TEONET_NUM 3 |
#define | teonet ((teonet_multi *)teo) |
Typedefs | |
typedef struct teonet_multi | teonet_multi |
Functions | |
void * | teonet_t (void *teo) |
Fossa main thread function. More... | |
int | main (int argc, char **argv) |
Main Teomulti application function. More... | |
Variables | |
const int | TEONET_PORTS [TEONET_NUM] = { 9301, 9302, 9303 } |
const char * | TEONET_NAMES [TEONET_NUM] = { "TEO-A", "TEO-B", "TEO-C" } |
#define teonet ((teonet_multi *)teo) |
Referenced by main(), and teonet_t().
#define TEONET_NUM 3 |
Referenced by main().
#define TMULTI_T_VERSION VERSION |
Referenced by main().
typedef struct teonet_multi teonet_multi |
int main | ( | int | argc, |
char ** | argv | ||
) |
Main Teomulti application function.
argc | Number of parameters |
argv | Parameters array |
References err, ke, KSNET_EVENT_MGR_TIMER, ksnetEvMgrStop(), READ_CONFIGURATION, READ_OPTIONS, teonet, TEONET_NAMES, TEONET_NUM, TEONET_PORTS, teonet_t(), tid, TMULTI_T_VERSION, and usleep().
void* teonet_t | ( | void * | teo | ) |
Fossa main thread function.
teo |
References teonet_cfg::host_name, ke, ksnetEvMgrInitPort(), ksnetEvMgrRun(), ksnetEvMgrClass::n_next, ksnetEvMgrClass::n_prev, ksnetEvMgrClass::net_count, ksnetEvMgrClass::net_idx, ksnetEvMgrClass::teo_cfg, and teonet.
Referenced by main().
const char* TEONET_NAMES[TEONET_NUM] = { "TEO-A", "TEO-B", "TEO-C" } |
Referenced by main().
const int TEONET_PORTS[TEONET_NUM] = { 9301, 9302, 9303 } |
Referenced by main().