Go to the source code of this file.
Classes | |
struct | config |
Defines | |
#define | C1_PEM "certs/ws1_client.pem" |
#define | C2_PEM "certs/ws2_client.pem" |
#define | CA1_PEM "certs/ws1_ca.pem" |
#define | CA2_PEM "certs/ws2_ca.pem" |
#define | S1_PEM "certs/ws1_server.pem" |
#define | S2_PEM "certs/ws2_server.pem" |
Functions | |
static int | ev_handler (struct mg_connection *conn, enum mg_event ev) |
int | main (void) |
static void * | serve_thread_func (void *param) |
static void | signal_handler (int sig_num) |
static void * | wrapper_thread_func (void *param) |
static int | ws_handler (struct mg_connection *conn, enum mg_event ev) |
Variables | |
static int | s_received_signal = 0 |
static struct config | s_wrappers [] |
static int ev_handler | ( | struct mg_connection * | conn, |
enum mg_event | ev | ||
) | [static] |
static void* serve_thread_func | ( | void * | param | ) | [static] |
static void signal_handler | ( | int | sig_num | ) | [static] |
static void* wrapper_thread_func | ( | void * | param | ) | [static] |
static int ws_handler | ( | struct mg_connection * | conn, |
enum mg_event | ev | ||
) | [static] |
int s_received_signal = 0 [static] |
struct config s_wrappers[] [static] |
{ { "ws1:80", "tcp://127.0.0.1:7001", "tcp://127.0.0.1:7001", "tcp://127.0.0.1:9001" }, { "ws1:443", "ssl://127.0.0.1:7002:" S1_PEM, "tcp://127.0.0.1:7002", "tcp://127.0.0.1:9001" }, { "ws2:80", "tcp://127.0.0.1:7003", "tcp://127.0.0.1:7003", "ssl://127.0.0.1:9002:" C2_PEM ":" CA2_PEM }, { "ws2:443", "ssl://127.0.0.1:7004:" S2_PEM, "tcp://127.0.0.1:7004", "ssl://127.0.0.1:9002:" C2_PEM ":" CA2_PEM }, }