69 TNamed(name, title), fEngines()
91 if (engine->
GetId() ==
id)
return engine;
111 Error(
"HandleWS",
"WS engine with similar id exists %u\n", arg->
GetWSId());
161 if (engine) engine->
Send(buf, len);
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
Bool_t IsMethod(const char *name) const
returns kTRUE if post method is used
void SendWS(UInt_t wsid, const void *buf, int len)
UInt_t GetWSId() const
get web-socket id
virtual ~THttpWSHandler()
virtual void Send(const void *buf, int len)=0
TList fEngines
! list of of engines in use, cleaned automatically at the end
THttpWSEngine * FindEngine(UInt_t id) const
virtual void SendCharStar(const char *str)
Envelope for sending string via the websocket.
The TNamed class is the base class for all named ROOT classes.
virtual Bool_t PreviewData(THttpCallArg *)
void CloseWS(UInt_t wsid)
void SendCharStarWS(UInt_t wsid, const char *str)
Bool_t HandleWS(THttpCallArg *arg)
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual UInt_t GetId() const =0
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual Bool_t ProcessWS(THttpCallArg *arg)=0
TNamed * TakeWSHandle()
takeout websocket handle with HTTP call can be done only once
virtual void Add(TObject *obj)
virtual void ClearHandle()=0
THttpWSHandler(const char *name, const char *title)
THttpWSHandler.