Go to the source code of this file.
Classes | |
struct | conn_data |
Functions | |
static int | ev_handler (struct mg_connection *conn, enum mg_event ev) |
static void | handle_websocket_message (struct mg_connection *conn) |
int | main (void) |
static void | signal_handler (int sig_num) |
Variables | |
static struct mg_server * | s_server = NULL |
static int | s_signal_received = 0 |
static int ev_handler | ( | struct mg_connection * | conn, |
enum mg_event | ev | ||
) | [static] |
Definition at line 45 of file websocket_chat.c.
static void handle_websocket_message | ( | struct mg_connection * | conn | ) | [static] |
Definition at line 23 of file websocket_chat.c.
int main | ( | void | ) |
Definition at line 70 of file websocket_chat.c.
static void signal_handler | ( | int | sig_num | ) | [static] |
Definition at line 18 of file websocket_chat.c.
Definition at line 11 of file websocket_chat.c.
int s_signal_received = 0 [static] |
Definition at line 10 of file websocket_chat.c.