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:
@ -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);
|
||||
|
Reference in New Issue
Block a user