Teonet library
0.4.7
|
#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... | |
Teonet C dispatcher
Features:
The basic commands of the application (API):
Created on 2016-03-27 15:40:07
#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 struct usock_class usock_class |
void event_cb | ( | ksnetEvMgrClass * | ke, |
ksnetEvMgrEvents | event, | ||
void * | data, | ||
size_t | data_len, | ||
void * | user_data | ||
) |
Teonet event handler.
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.
argc | |
argv |
References event_cb(), ke, ksnetEvMgrInit(), ksnetEvMgrRun(), READ_ALL, TDB_VERSION, teoGetLibteonetVersion(), teoSetAppType(), and teoSetAppVersion().