Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teofossa.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "fossa.h"
#include "ev_mgr.h"

Macros

#define TFOSSA_VERSION   VERSION
 

Functions

void event_cb (ksnetEvMgrClass *ke, ksnetEvMgrEvents ev, void *data, size_t data_len, void *user_data)
 Teonet event handler. More...
 
void * fossa (void *ke)
 Fossa main thread function. More...
 
int main (int argc, char **argv)
 Main Teofossa application function. More...
 

Variables

pthread_t tid
 

Macro Definition Documentation

#define TFOSSA_VERSION   VERSION
Examples:
teofossa.c.

Referenced by main().

Function Documentation

void event_cb ( ksnetEvMgrClass ke,
ksnetEvMgrEvents  ev,
void *  data,
size_t  data_len,
void *  user_data 
)

Teonet event handler.

Parameters
ke
ev
data
data_len
user_data
Examples:
teofossa.c.

References EV_K_ASYNC, and free().

Referenced by main().

void* fossa ( void *  ke)

Fossa main thread function.

Parameters
ke
Returns
Examples:
teofossa.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Main Teofossa application function.

Parameters
argcNumber of parameters
argvParameters array
Returns
Examples:
teofossa.c.

References err, event_cb(), fossa(), ke, ksnet_printf(), ksnetEvMgrInit(), ksnetEvMgrRun(), MESSAGE, READ_CONFIGURATION, READ_OPTIONS, ksnetEvMgrClass::teo_cfg, TFOSSA_VERSION, and tid.

Variable Documentation

pthread_t tid
Examples:
teofossa.c, and teomulti_t.c.

Referenced by main().