Logo ROOT   6.14/05
Reference Guide
THttpWSEngine.cxx
Go to the documentation of this file.
1 // $Id$
2 // Author: Sergey Linev 20/10/2017
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2013, 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 #include "THttpWSEngine.h"
13 
14 #include "THttpCallArg.h"
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // THttpWSEngine //
19 // //
20 // Internal instance used to exchange WS functionality between //
21 // THttpServer and THttpWSHandler. Normally should not be used directly //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 
26 ////////////////////////////////////////////////////////////////////////////////
27 /// Envelope for sending string via the websocket
28 
29 void THttpWSEngine::SendCharStar(const char *str)
30 {
31  if (str)
32  Send(str, strlen(str));
33 }
34 
35 ////////////////////////////////////////////////////////////////////////////////
36 /// Method should be invoked before processing data coming from websocket
37 /// If method returns kTRUE, this is data is processed internally and
38 /// not dedicated for further usage
39 
40 Bool_t THttpWSEngine::PreviewData(std::shared_ptr<THttpCallArg> &)
41 {
42  return kFALSE;
43 }
44 
45 ////////////////////////////////////////////////////////////////////////////////
46 /// Method invoked after user process data received via websocket
47 /// Normally request is no longer usable after that
48 
49 void THttpWSEngine::PostProcess(std::shared_ptr<THttpCallArg> &)
50 {
51 }
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 PostProcess(std::shared_ptr< THttpCallArg > &arg)
Method invoked after user process data received via websocket Normally request is no longer usable af...
const Bool_t kFALSE
Definition: RtypesCore.h:88
virtual Bool_t PreviewData(std::shared_ptr< THttpCallArg > &arg)
Method should be invoked before processing data coming from websocket If method returns kTRUE...