#include "TCivetweb.h"
#include <cstdlib>
#include <cstring>
#include "THttpServer.h"
#include "THttpWSEngine.h"
#include "TUrl.h"
#include "TSystem.h"
#include "TError.h"
Classes | |
class | TCivetwebWSEngine |
TCivetwebWSEngine. More... | |
struct | TEngineHolder |
Functions | |
static int | begin_request_handler (struct mg_connection *conn, void *) |
Bool_t | CheckEngineThreads (TCivetweb *engine, const char *uri, Bool_t longpoll) |
Check if engine has enough threads to process connect to new websocket handle. | |
Bool_t | IsBadLongPollConnect (TCivetweb *engine, const std::shared_ptr< THttpCallArg > &arg) |
Returns kTRUE in case of longpoll connection request - or at least looks like that. | |
static int | log_message_handler (const struct mg_connection *conn, const char *message) |
void | websocket_close_handler (const struct mg_connection *conn, void *) |
int | websocket_connect_handler (const struct mg_connection *conn, void *) |
int | websocket_data_handler (struct mg_connection *conn, int code, char *data, size_t len, void *) |
void | websocket_ready_handler (struct mg_connection *conn, void *) |
|
static |
Definition at line 307 of file TCivetweb.cxx.
Check if engine has enough threads to process connect to new websocket handle.
Definition at line 81 of file TCivetweb.cxx.
Bool_t IsBadLongPollConnect | ( | TCivetweb * | engine, |
const std::shared_ptr< THttpCallArg > & | arg | ||
) |
Returns kTRUE in case of longpoll connection request - or at least looks like that.
Definition at line 290 of file TCivetweb.cxx.
|
static |
Definition at line 258 of file TCivetweb.cxx.
void websocket_close_handler | ( | const struct mg_connection * | conn, |
void * | |||
) |
Definition at line 154 of file TCivetweb.cxx.
int websocket_connect_handler | ( | const struct mg_connection * | conn, |
void * | |||
) |
Definition at line 98 of file TCivetweb.cxx.
int websocket_data_handler | ( | struct mg_connection * | conn, |
int | code, | ||
char * | data, | ||
size_t | len, | ||
void * | |||
) |
Definition at line 182 of file TCivetweb.cxx.
void websocket_ready_handler | ( | struct mg_connection * | conn, |
void * | |||
) |
Definition at line 127 of file TCivetweb.cxx.