43 printf(
"Client msg: %s\n", str.
Data());
66 TUserHandler *handler =
new TUserHandler(
"name1",
"title1");
68 serv->Register(
"/folder1", handler);
70 const char *addr =
"http://localhost:8090/folder1/name1/";
72 printf(
"Starting browser with URL address %s\n", addr);
73 printf(
"In browser content of ws.htm file should be loaded\n");
Bool_t IsMethod(const char *name) const
returns kTRUE if post method is used
UInt_t GetWSId() const
get web-socket id
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.
virtual Bool_t HandleTimer(TTimer *timer)
Execute action in response of a timer timing out.
TString GetPostDataAsString() const _R__DEPRECATED_618("Use other methods to access POST data")
returns post data as TString
void SendCharStarWS(UInt_t wsid, const char *str)
Send string via given websocket id.
R__EXTERN TSystem * gSystem
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual TString GetDefaultPageContent()
Provides content of default web page for registered web-socket handler Can be content of HTML page or...
char * Form(const char *fmt,...)
Handles synchronous and a-synchronous timer events.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
const char * AsString() const
Return the date & time as a string (ctime() format).
virtual Bool_t ProcessWS(THttpCallArg *arg)=0
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * Data() const