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

Update websocket example - use new API functions

This commit is contained in:
bel
2014-08-10 23:49:49 +02:00
parent 64c97d56e4
commit 56389ad023
5 changed files with 49 additions and 65 deletions

View File

@ -8,10 +8,10 @@
extern "C" {
#endif
void websock_init_lib(void);
void websock_exit_lib(void);
void websock_init_lib(struct mg_context *ctx);
void websock_exit_lib(struct mg_context *ctx);
void websock_send_broadcast(const char * data, int data_len);
void websock_send_broadcast(struct mg_context *ctx, const char * data, int data_len);
void websocket_ready_handler(struct mg_connection *conn);
int websocket_data_handler(struct mg_connection *conn, int flags, char *data, size_t data_len);