WebSockCallbacks.h 436 B

123456789101112131415161718192021
  1. #ifndef WEBSOCKCALLBACKS_H_INCLUDED
  2. #define WEBSOCKCALLBACKS_H_INCLUDED
  3. #include "civetweb.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. void websock_init_lib(void);
  8. void websocket_ready_handler(struct mg_connection *conn);
  9. int websocket_data_handler(struct mg_connection *conn, int flags, char *data, size_t data_len);
  10. void connection_close_handler(struct mg_connection *conn);
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #endif