Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teodsp.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
#include "ev_mgr.h"

Macros

#define TDB_VERSION   "0.0.1"
 
#define APPNAME   _ANSI_LIGHTMAGENTA "teodsp" _ANSI_NONE
 
#define MODULE   _ANSI_LIGHTBLUE "usock" _ANSI_NONE
 
#define HTTP_SUF   " HTTP/1.0\r\n\r\n"
 

Typedefs

typedef struct usock_class usock_class
 

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...
 

Detailed Description

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

Teonet C dispatcher

Features:

The basic commands of the application (API):

Created on 2016-03-27 15:40:07

Macro Definition Documentation

#define APPNAME   _ANSI_LIGHTMAGENTA "teodsp" _ANSI_NONE

Referenced by event_cb().

#define HTTP_SUF   " HTTP/1.0\r\n\r\n"
#define MODULE   _ANSI_LIGHTBLUE "usock" _ANSI_NONE
#define TDB_VERSION   "0.0.1"

Referenced by main().

Typedef Documentation

typedef struct usock_class usock_class

Function Documentation

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

Teonet event handler.

Parameters
ke
event
data
data_len
user_data

References APPNAME, EV_K_RECEIVED, EV_K_STARTED, EV_K_STOPPED_BEFORE, EV_U_RECEIVED, ksn_puts, MESSAGE, and ksnetEvMgrClass::user_data.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Main application function.

Parameters
argc
argv
Returns

References event_cb(), ke, ksnetEvMgrInit(), ksnetEvMgrRun(), READ_ALL, TDB_VERSION, teoGetLibteonetVersion(), teoSetAppType(), and teoSetAppVersion().