1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-07-29 21:01:13 +03:00

Replace trivial websocket example by a more illustrated one

This commit is contained in:
bel
2013-10-31 21:53:29 +01:00
parent f598f10d72
commit c09392f7bd
4 changed files with 257 additions and 1 deletions

View File

@ -0,0 +1,21 @@
#ifndef WEBSOCKCALLBACKS_H_INCLUDED
#define WEBSOCKCALLBACKS_H_INCLUDED
#include "civetweb.h"
#ifdef __cplusplus
extern "C" {
#endif
void websock_init_lib(void);
void websocket_ready_handler(struct mg_connection *conn);
int websocket_data_handler(struct mg_connection *conn, int flags, char *data, size_t data_len);
void connection_close_handler(struct mg_connection *conn);
#ifdef __cplusplus
}
#endif
#endif