Logo ROOT   6.12/07
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 "TNamed.h"
16 
17 class THttpCallArg;
18 
19 class THttpWSEngine : public TNamed {
20 
21 protected:
22  THttpWSEngine(const char *name, const char *title);
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 SendCharStar(const char *str);
34 
35  virtual Bool_t PreviewData(THttpCallArg *) { return kFALSE; }
36 
37  ClassDef(THttpWSEngine, 0) // abstract class for working with WebSockets-like protocol
38 };
39 
40 #endif
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.
#define ClassDef(name, id)
Definition: Rtypes.h:320
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
virtual Bool_t PreviewData(THttpCallArg *)
Definition: THttpWSEngine.h:35
virtual UInt_t GetId() const =0
unsigned int UInt_t
Definition: RtypesCore.h:42
const Bool_t kFALSE
Definition: RtypesCore.h:88
virtual ~THttpWSEngine()
destructor
THttpWSEngine(const char *name, const char *title)
normal constructor
virtual void ClearHandle()=0
char name[80]
Definition: TGX11.cxx:109