Teonet library
0.4.7
|
Go to the source code of this file.
Data Structures | |
struct | ksnHTTPClass |
File: teo_web.h Author: Kirill Scherba kiril l@sc herba .ruMore... | |
struct | teoweb_data |
Teonet HTTP module async data structure. More... | |
Typedefs | |
typedef struct ksnHTTPClass | ksnHTTPClass |
File: teo_web.h Author: Kirill Scherba kiril l@sc herba .ruMore... | |
Enumerations | |
enum | WS_CMD { WS_CONNECTED, WS_MESSAGE, WS_DISCONNECTED } |
Teonet HTTP module async event commands. More... | |
Functions | |
ksnHTTPClass * | ksnHTTPInit (ksnetEvMgrClass *ke, teoweb_config *tw_cfg) |
Initialize teonet HTTP module. More... | |
void | ksnHTTPDestroy (ksnHTTPClass *kh) |
Destroy teonet HTTP module. More... | |
typedef struct ksnHTTPClass ksnHTTPClass |
enum WS_CMD |
void ksnHTTPDestroy | ( | ksnHTTPClass * | kh | ) |
Destroy teonet HTTP module.
kh | Pointer to ksnHTTPClass |
References free(), ksnHTTPClass::s_http_port, ksnHTTPClass::stop, ksnHTTPClass::stopped, ksnHTTPClass::ta, teoAuthDestroy(), tws, and usleep().
Referenced by event_cb().
ksnHTTPClass* ksnHTTPInit | ( | ksnetEvMgrClass * | ke, |
teoweb_config * | tw_cfg | ||
) |
Initialize teonet HTTP module.
ke | Pointer to ksnetEvMgrClass |
tw_cfg | Pointer to teoweb_config |
References ksnHTTPClass::conf, teoweb_config::document_root, mg_serve_http_opts::document_root, mg_serve_http_opts::enable_directory_listing, err, teoweb_config::http_port, mg_serve_http_opts::index_files, ksnHTTPClass::ke, ke, KSN_BUFFER_SIZE, ksnHTTPClass::kws, malloc(), ksnHTTPClass::s_http_port, ksnHTTPClass::s_http_server_opts, ksnHTTPClass::stop, ksnHTTPClass::stopped, ksnHTTPClass::ta, teoAuthInit(), teoWSInit(), and ksnHTTPClass::tid.
Referenced by event_cb().