Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teomulti_t.c File Reference
#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" }
 

Detailed Description

Macro Definition Documentation

#define teonet   ((teonet_multi *)teo)
Examples:
teocquecpp.cpp, and teomulti_t.c.

Referenced by main(), and teonet_t().

#define TEONET_NUM   3
Examples:
teomulti_t.c.

Referenced by main().

#define TMULTI_T_VERSION   VERSION
Examples:
teomulti_t.c.

Referenced by main().

Typedef Documentation

typedef struct teonet_multi teonet_multi
Examples:
teomulti_t.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Main Teomulti application function.

Parameters
argcNumber of parameters
argvParameters array
Returns
EXIT_SUCCESS
Examples:
teomulti_t.c.

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)

Variable Documentation

const char* TEONET_NAMES[TEONET_NUM] = { "TEO-A", "TEO-B", "TEO-C" }
Examples:
teomulti_t.c.

Referenced by main().

const int TEONET_PORTS[TEONET_NUM] = { 9301, 9302, 9303 }
Examples:
teomulti_t.c.

Referenced by main().