ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
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, data is processed internally and
38
/// not dedicated for further usage
39
40
Bool_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
48
void
THttpWSEngine::PostProcess(std::shared_ptr<THttpCallArg> &)
49
{
50
}
THttpCallArg.h
THttpWSEngine.h
net
http
src
THttpWSEngine.cxx
Generated on Tue May 5 2020 14:03:12 for ROOT by
1.8.5