Logo ROOT  
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
29void 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, data is processed internally and
38/// not dedicated for further usage
39
40Bool_t THttpWSEngine::PreProcess(std::shared_ptr<THttpCallArg> &)
41{
42 return kFALSE;
43}
44
45////////////////////////////////////////////////////////////////////////////////
46/// Method invoked after user process data received via websocket
47
48void THttpWSEngine::PostProcess(std::shared_ptr<THttpCallArg> &)
49{
50}
const Bool_t kFALSE
Definition: RtypesCore.h:90
virtual Bool_t PreProcess(std::shared_ptr< THttpCallArg > &arg)
Method should be invoked before processing data coming from websocket If method returns kTRUE,...
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.
virtual void Send(const void *buf, int len)=0