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:
21
examples/websocket/WebSockCallbacks.h
Normal file
21
examples/websocket/WebSockCallbacks.h
Normal 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
|
Reference in New Issue
Block a user