Logo ROOT   6.14/05
Reference Guide
THttpWSEngine.h
Go to the documentation of this file.
1 // $Id$
2 // Author: Sergey Linev 20/10/2017
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_THttpWSEngine
13 #define ROOT_THttpWSEngine
14 
15 #include "Rtypes.h"
16 
17 #include "THttpCallArg.h"
18 
20 
21 protected:
22  THttpWSEngine() = default;
23 
24 public:
25  virtual ~THttpWSEngine() {}
26 
27  virtual UInt_t GetId() const = 0;
28 
29  virtual void ClearHandle() = 0;
30 
31  virtual void Send(const void *buf, int len) = 0;
32 
33  virtual void SendHeader(const char *hdr, const void *buf, int len) = 0;
34 
35  virtual void SendCharStar(const char *str);
36 
37  virtual Bool_t PreviewData(std::shared_ptr<THttpCallArg> &arg);
38 
39  virtual void PostProcess(std::shared_ptr<THttpCallArg> &arg);
40 };
41 
42 #endif
THttpWSEngine()=default
bool Bool_t
Definition: RtypesCore.h:59
virtual void Send(const void *buf, int len)=0
virtual void SendCharStar(const char *str)
Envelope for sending string via the websocket.
virtual void SendHeader(const char *hdr, const void *buf, int len)=0
virtual void PostProcess(std::shared_ptr< THttpCallArg > &arg)
Method invoked after user process data received via websocket Normally request is no longer usable af...
virtual UInt_t GetId() const =0
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual Bool_t PreviewData(std::shared_ptr< THttpCallArg > &arg)
Method should be invoked before processing data coming from websocket If method returns kTRUE...
virtual ~THttpWSEngine()
Definition: THttpWSEngine.h:25
virtual void ClearHandle()=0