Teonet library
0.4.7
|
Macros | |
#define | tws ((teoWSClass *)kh->kws) |
File: teo_web.c Author: Kirill Scherba kiril l@sc herba .ruMore... | |
Functions | |
ksnHTTPClass * | ksnHTTPInit (ksnetEvMgrClass *ke, teoweb_config *tw_cfg) |
Initialize teonet HTTP module. More... | |
void | ksnHTTPDestroy (ksnHTTPClass *kh) |
Destroy teonet HTTP module. More... | |
#define tws ((teoWSClass *)kh->kws) |
File: teo_web.c Author: Kirill Scherba kiril l@sc herba .ru
Teonet HTTP/WS Server module
Created on October 2, 2015, 12:04 AM Teonet websocket class
Referenced by ksnHTTPDestroy().
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().