Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TCivetweb.cxx File Reference
#include "TCivetweb.h"
#include <cstdlib>
#include <cstring>
#include "THttpServer.h"
#include "THttpWSEngine.h"
#include "TUrl.h"
#include "TSystem.h"
#include "TError.h"
Include dependency graph for TCivetweb.cxx:

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 *)
 

Function Documentation

◆ begin_request_handler()

static int begin_request_handler ( struct mg_connection conn,
void *   
)
static

Definition at line 311 of file TCivetweb.cxx.

◆ CheckEngineThreads()

Bool_t CheckEngineThreads ( TCivetweb engine,
const char *  uri,
Bool_t  longpoll 
)

Check if engine has enough threads to process connect to new websocket handle.

Definition at line 81 of file TCivetweb.cxx.

◆ IsBadLongPollConnect()

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 294 of file TCivetweb.cxx.

◆ log_message_handler()

static int log_message_handler ( const struct mg_connection conn,
const char *  message 
)
static

Definition at line 262 of file TCivetweb.cxx.

◆ websocket_close_handler()

void websocket_close_handler ( const struct mg_connection conn,
void *   
)

Definition at line 156 of file TCivetweb.cxx.

◆ websocket_connect_handler()

int websocket_connect_handler ( const struct mg_connection conn,
void *   
)

Definition at line 98 of file TCivetweb.cxx.

◆ websocket_data_handler()

int websocket_data_handler ( struct mg_connection conn,
int  code,
char *  data,
size_t  len,
void *   
)

Definition at line 185 of file TCivetweb.cxx.

◆ websocket_ready_handler()

void websocket_ready_handler ( struct mg_connection conn,
void *   
)

Definition at line 128 of file TCivetweb.cxx.