Teonet library
0.4.7
|
#include <stdlib.h>
#include <stdio.h>
#include "embedded/jsmn/jsmn.h"
#include "utils/rlutil.h"
#include "../teo_auth/teo_auth.h"
#include "teo_ws.h"
Macros | |
#define | MODULE _ANSI_YELLOW "websocket_l0" _ANSI_NONE |
File: teo_ws.c Author: Kirill Scherba kiril l@sc herba .ruMore... | |
#define | nc ((struct mg_connection *)nc_p) |
Pointer to mg_connection structure. More... | |
#define | kev ((ksnetEvMgrClass*)kws->kh->ke) |
Pointer to teonet_cfg structure. More... | |
#define | teoLNullDisconnectThis(con) { free(con->user_data); teoLNullDisconnect(con); } |
#define | kev_t ((ksnetEvMgrClass*)((teoLNullConnectUserData*)con->user_data)->kws->kh->ke) |
Typedefs | |
typedef struct teoLNullConnectUserData | teoLNullConnectUserData |
L0 server teonet L0 connect user data. More... | |
Functions | |
teoWSClass * | teoWSInit (ksnHTTPClass *kh) |
This module label. More... | |
#define kev ((ksnetEvMgrClass*)kws->kh->ke) |
Pointer to teonet_cfg structure.
#define kev_t ((ksnetEvMgrClass*)((teoLNullConnectUserData*)con->user_data)->kws->kh->ke) |
#define MODULE _ANSI_YELLOW "websocket_l0" _ANSI_NONE |
File: teo_ws.c Author: Kirill Scherba kiril l@sc herba .ru
Teonet websocket L0 connector module
Created on November 8, 2015, 3:58 PM
Referenced by teoWSInit().
#define nc ((struct mg_connection *)nc_p) |
Pointer to mg_connection structure.
Referenced by cli_loop_read(), event_cb(), mg_add_sock_opt(), mg_bind_opt(), mg_connect_http(), mg_connect_opt(), mg_do_connect(), mg_if_accept_tcp_cb(), mg_if_recv_udp_cb(), and mg_mgr_poll().
#define teoLNullDisconnectThis | ( | con | ) | { free(con->user_data); teoLNullDisconnect(con); } |
typedef struct teoLNullConnectUserData teoLNullConnectUserData |
L0 server teonet L0 connect user data.
teoWSClass* teoWSInit | ( | ksnHTTPClass * | kh | ) |
This module label.
Initialize teonet websocket module
kh | Pointer to ksnHTTPClass |
References DEBUG, ksnHTTPClass::ke, ksn_puts, malloc(), and MODULE.
Referenced by ksnHTTPInit().