Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teo_web.h File Reference
#include "ev_mgr.h"
#include "teo_web_conf.h"
#include "embedded/mongoose/mongoose.h"

Go to the source code of this file.

Data Structures

struct  ksnHTTPClass
 File: teo_web.h Author: Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru More...
 
struct  teoweb_data
 Teonet HTTP module async data structure. More...
 

Typedefs

typedef struct ksnHTTPClass ksnHTTPClass
 File: teo_web.h Author: Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru More...
 

Enumerations

enum  WS_CMD { WS_CONNECTED, WS_MESSAGE, WS_DISCONNECTED }
 Teonet HTTP module async event commands. More...
 

Functions

ksnHTTPClassksnHTTPInit (ksnetEvMgrClass *ke, teoweb_config *tw_cfg)
 Initialize teonet HTTP module. More...
 
void ksnHTTPDestroy (ksnHTTPClass *kh)
 Destroy teonet HTTP module. More...
 

Typedef Documentation

typedef struct ksnHTTPClass ksnHTTPClass

File: teo_web.h Author: Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru

Teonet HTTP/WS Server module

Created on October 2, 2015, 12:04 AM HTTP module class data

Enumeration Type Documentation

enum WS_CMD

Teonet HTTP module async event commands.

Enumerator
WS_CONNECTED 

Websocket connected.

WS_MESSAGE 

Websocket send message.

WS_DISCONNECTED 

Websocket disconnected.

Function Documentation

void ksnHTTPDestroy ( ksnHTTPClass kh)

Destroy teonet HTTP module.

Parameters
khPointer to ksnHTTPClass

References free(), ksnHTTPClass::s_http_port, ksnHTTPClass::stop, ksnHTTPClass::stopped, ksnHTTPClass::ta, teoAuthDestroy(), tws, and usleep().

Referenced by event_cb().