28 TString GetDefaultPageContent()
override {
return "file:ws.htm"; }
43 printf(
"Client connected %d\n", fWSId);
49 printf(
"Client disconnected\n");
56 printf(
"Client msg: %s\n", str.Data());
81 serv->Register(
"/folder1", handler);
83 const char *
addr =
"http://localhost:8090/folder1/name1/";
85 printf(
"Starting browser with URL address %s\n",
addr);
86 printf(
"In browser content of ws.htm file should be loaded\n");
87 printf(
"Please be sure that ws.htm is provided in current directory\n");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TSystem * gSystem
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Contains arguments for single HTTP call.
UInt_t GetWSId() const
get web-socket id
const void * GetPostData() const
return pointer on posted with request data
Long_t GetPostDataLength() const
return length of posted with request data
Bool_t IsMethod(const char *name) const
returns kTRUE if post method is used
Online http server for arbitrary ROOT application.
Class for user-side handling of websocket with THttpServer.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
TString & Append(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
Handles synchronous and a-synchronous timer events.