2021-08-18 18:15:10 +00:00
|
|
|
/*************************************************************************
|
|
|
|
PURPOSE: (Represent Websocket variable server connection.)
|
|
|
|
LIBRARY DEPENDENCIES:
|
|
|
|
( (../src/http_GET_handlers.o))
|
|
|
|
**************************************************************************/
|
|
|
|
#ifndef HANDLE_HTTP_GET_HANDLERS_HH
|
|
|
|
#define HANDLE_HTTP_GET_HANDLERS_HH
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
#ifndef SWIG
|
2021-10-19 18:41:42 +00:00
|
|
|
#include "CivetServer.h"
|
2021-08-18 18:15:10 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void http_send(struct mg_connection *conn, const char* msg, int len, int chunk_size);
|
|
|
|
int http_send_ok(struct mg_connection *conn, const char* msg, int len, int chunk_size);
|
|
|
|
int http_send_error(struct mg_connection *conn, int error_code, const char* msg, int len, int chunk_size);
|
|
|
|
|
|
|
|
int parent_http_handler(struct mg_connection* conn, void *cbdata);
|
|
|
|
|
|
|
|
void handle_HTTP_GET_vs_connections(struct mg_connection *nc, void* cbdata);
|
|
|
|
void handle_HTTP_GET_alloc_info(struct mg_connection *nc, void* ignore);
|
|
|
|
|
|
|
|
int echo_connect_handler(const struct mg_connection *conn,
|
|
|
|
void *cbdata);
|
|
|
|
|
|
|
|
void echo_ready_handler(struct mg_connection *conn, void *cbdata);
|
|
|
|
|
|
|
|
int echo_data_handler(struct mg_connection *conn, int bits,
|
|
|
|
char *data, size_t data_len, void *cbdata);
|
|
|
|
|
|
|
|
void echo_close_handler(const struct mg_connection *conn,
|
|
|
|
void *cbdata);
|
|
|
|
|
|
|
|
int ws_connect_handler(const struct mg_connection *conn,
|
|
|
|
void *ignore);
|
|
|
|
|
|
|
|
//VariableServer
|
|
|
|
void ws_ready_handler(struct mg_connection *conn, void *my_server);
|
|
|
|
|
|
|
|
int ws_data_handler(struct mg_connection *conn, int bits,
|
|
|
|
char *data, size_t data_len, void *my_server);
|
|
|
|
|
|
|
|
void ws_close_handler(const struct mg_connection *conn,
|
|
|
|
void *my_server);
|
|
|
|
|
|
|
|
int begin_request(struct mg_connection* conn);
|
|
|
|
|
|
|
|
#endif
|