Classes | Functions | Variables
websocket_chat.c File Reference
#include <string.h>
#include <time.h>
#include <signal.h>
#include <stdlib.h>
#include "mongoose.h"
Include dependency graph for websocket_chat.c:

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_servers_server = NULL
static int s_signal_received = 0

Function Documentation

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.


Variable Documentation

struct mg_server* s_server = NULL [static]

Definition at line 11 of file websocket_chat.c.

int s_signal_received = 0 [static]

Definition at line 10 of file websocket_chat.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09