WebSockCallbacks.h 533 B

12345678910111213141516171819202122232425
  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 websock_exit_lib(void);
  9. void websock_send_broadcast(const char * data, int data_len);
  10. void websocket_ready_handler(struct mg_connection *conn);
  11. int websocket_data_handler(struct mg_connection *conn, int flags, char *data, size_t data_len);
  12. void connection_close_handler(struct mg_connection *conn);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif