12 #ifndef ROOT_THttpEngine
13 #define ROOT_THttpEngine
67 virtual void Send(
const void *buf,
int len) = 0;
THttpServer * GetServer() const
Returns pointer to THttpServer associated with engine.
virtual void Process()
Method regularly called in main ROOT context.
Bool_t fReady
! indicate if websocket get ready flag to send bigger amount of data
virtual void ProcessData(THttpCallArg *arg)
process data received from the client
virtual void Send(const void *buf, int len)=0
void SetServer(THttpServer *serv)
virtual void AssignCanvas(TCanvas *canv)
assign canvas to the web socket connects with CanvasModified signal
virtual ~THttpEngine()
destructor
virtual void SendCharStar(const char *str)
Envelope for sending string via the websocket.
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
virtual Bool_t PreviewData(THttpCallArg *)
THttpEngine(const char *name, const char *title)
normal constructor
Bool_t fGetMenu
! true when menu was requested
THttpServer * fServer
! object server
virtual UInt_t GetId() const =0
virtual Bool_t Create(const char *)
Method to create all components of engine.
void CheckModifiedFlag()
if canvas was modified, send new copy to the client
TCanvas * fCanv
! canvas associated with websocket
virtual void CanvasModified()
react on canvas modifications
virtual ~THttpWSEngine()
destructor
THttpWSEngine(const char *name, const char *title)
normal constructor
Bool_t fModified
! true when canvas was modified
virtual void ClearHandle()=0