Internal instance used to exchange WS functionality between THttpServer and THttpWSHandler.
Normally should not be used directly
Definition at line 26 of file THttpWSEngine.h.
|
virtual | ~THttpWSEngine ()=default |
|
virtual void | ClearHandle (Bool_t)=0 |
|
virtual UInt_t | GetId () const =0 |
|
virtual void | PostProcess (std::shared_ptr< THttpCallArg > &arg) |
| Method invoked after user process data received via websocket.
|
|
virtual Bool_t | PreProcess (std::shared_ptr< THttpCallArg > &arg) |
| Method should be invoked before processing data coming from websocket If method returns kTRUE, data is processed internally and not dedicated for further usage.
|
|
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 |
|
|
std::condition_variable | fCond |
| ! condition used to sync with sending thread
|
|
std::string | fData |
| ! data (binary or text)
|
|
bool | fDisabled {false} |
| ! true shortly before cleanup, set under locked fMutex from WSHandler
|
|
bool | fHasSendThrd {false} |
| ! if thread was started one have to call join method for it
|
|
std::string | fHdr |
| ! header
|
|
bool | fMTSend {false} |
| ! true when send operation runs, set under locked fMutex from WSHandler
|
|
std::mutex | fMutex |
| ! protects all data behind
|
|
bool | fSending {false} |
| ! performing send operation in other thread
|
|
std::thread | fSendThrd |
| ! dedicated thread for all send operations
|
|
bool | fWaiting {false} |
| ! if condition wait is called
|
|
enum THttpWSEngine:: { ... } | kNone |
| ! kind of operation
|
|
#include </home/sftnight/build/workspace/root-makedoc-v630/rootspi/rdoc/src/v6-30-00-patches/net/http/src/THttpWSEngine.h>
◆ anonymous enum
◆ THttpWSEngine()
THttpWSEngine::THttpWSEngine |
( |
| ) |
|
|
protecteddefault |
◆ ~THttpWSEngine()
virtual THttpWSEngine::~THttpWSEngine |
( |
| ) |
|
|
virtualdefault |
◆ CanSendDirectly()
virtual Bool_t THttpWSEngine::CanSendDirectly |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ ClearHandle()
virtual void THttpWSEngine::ClearHandle |
( |
Bool_t |
| ) |
|
|
pure virtual |
◆ GetId()
virtual UInt_t THttpWSEngine::GetId |
( |
| ) |
const |
|
pure virtual |
◆ PostProcess()
void THttpWSEngine::PostProcess |
( |
std::shared_ptr< THttpCallArg > & |
arg | ) |
|
|
virtual |
◆ PreProcess()
Method should be invoked before processing data coming from websocket If method returns kTRUE, data is processed internally and not dedicated for further usage.
Reimplemented in THttpLongPollEngine.
Definition at line 40 of file THttpWSEngine.cxx.
◆ Send()
virtual void THttpWSEngine::Send |
( |
const void * |
buf, |
|
|
int |
len |
|
) |
| |
|
pure virtual |
◆ SendCharStar()
void THttpWSEngine::SendCharStar |
( |
const char * |
str | ) |
|
|
virtual |
◆ SendHeader()
virtual void THttpWSEngine::SendHeader |
( |
const char * |
hdr, |
|
|
const void * |
buf, |
|
|
int |
len |
|
) |
| |
|
pure virtual |
◆ SupportSendThrd()
virtual Bool_t THttpWSEngine::SupportSendThrd |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ THttpWSHandler
◆ fCond
std::condition_variable THttpWSEngine::fCond |
|
private |
! condition used to sync with sending thread
Definition at line 38 of file THttpWSEngine.h.
◆ fData
std::string THttpWSEngine::fData |
|
private |
◆ fDisabled
bool THttpWSEngine::fDisabled {false} |
|
private |
! true shortly before cleanup, set under locked fMutex from WSHandler
Definition at line 32 of file THttpWSEngine.h.
◆ fHasSendThrd
bool THttpWSEngine::fHasSendThrd {false} |
|
private |
! if thread was started one have to call join method for it
Definition at line 35 of file THttpWSEngine.h.
◆ fHdr
std::string THttpWSEngine::fHdr |
|
private |
◆ fMTSend
bool THttpWSEngine::fMTSend {false} |
|
private |
! true when send operation runs, set under locked fMutex from WSHandler
Definition at line 31 of file THttpWSEngine.h.
◆ fMutex
std::mutex THttpWSEngine::fMutex |
|
private |
◆ fSending
bool THttpWSEngine::fSending {false} |
|
private |
! performing send operation in other thread
Definition at line 40 of file THttpWSEngine.h.
◆ fSendThrd
std::thread THttpWSEngine::fSendThrd |
|
private |
! dedicated thread for all send operations
Definition at line 34 of file THttpWSEngine.h.
◆ fWaiting
bool THttpWSEngine::fWaiting {false} |
|
private |
◆ []
enum { ... } THttpWSEngine::kNone |