1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-07-31 08:24:23 +03:00

Update websocket example - use the current interface

This commit is contained in:
bel
2015-08-19 21:15:22 +02:00
parent 615970e9d1
commit 9f3f8baac0
3 changed files with 17 additions and 9 deletions

View File

@ -27,9 +27,9 @@ void websock_exit_lib(const struct mg_context *ctx);
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);
void connection_close_handler(const struct mg_connection *conn);
void websocket_ready_handler(struct mg_connection *conn, void *_ignored);
int websocket_data_handler(struct mg_connection *conn, int flags, char *data, size_t data_len, void *_ignored);
void connection_close_handler(const struct mg_connection *conn, void *_ignored);
#ifdef __cplusplus