Implementation of THttpWSEngine for Civetweb
Definition at line 30 of file TCivetweb.cxx.
Public Member Functions | |
TCivetwebWSEngine (struct mg_connection *conn) | |
virtual | ~TCivetwebWSEngine ()=default |
void | ClearHandle (Bool_t terminate) override |
UInt_t | GetId () const override |
void | Send (const void *buf, int len) override |
void | SendCharStar (const char *str) override |
Envelope for sending string via the websocket. More... | |
void | SendHeader (const char *hdr, const void *buf, int len) override |
Special method to send binary data with text header For normal websocket it is two separated operation, for other engines could be combined together, but emulates as two messages on client side. More... | |
![]() | |
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. More... | |
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. More... | |
virtual void | Send (const void *buf, int len)=0 |
virtual void | SendCharStar (const char *str) |
Envelope for sending string via the websocket. More... | |
virtual void | SendHeader (const char *hdr, const void *buf, int len)=0 |
Protected Member Functions | |
Bool_t | SupportSendThrd () const override |
True websocket requires extra thread to parallelize sending. More... | |
![]() | |
THttpWSEngine ()=default | |
virtual Bool_t | CanSendDirectly () |
One always can send data to websocket - as long as previous send operation completed. More... | |
virtual Bool_t | SupportSendThrd () const |
Indicate if engine require extra thread to complete postponed thread operation. More... | |
Protected Attributes | |
struct mg_connection * | fWSconn |
|
inline |
Definition at line 38 of file TCivetweb.cxx.
|
virtualdefault |
|
inlineoverridevirtual |
Implements THttpWSEngine.
Definition at line 44 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Implements THttpWSEngine.
Definition at line 42 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Implements THttpWSEngine.
Definition at line 51 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Envelope for sending string via the websocket.
Reimplemented from THttpWSEngine.
Definition at line 69 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Special method to send binary data with text header For normal websocket it is two separated operation, for other engines could be combined together, but emulates as two messages on client side.
Implements THttpWSEngine.
Definition at line 61 of file TCivetweb.cxx.
|
inlineoverrideprotectedvirtual |
True websocket requires extra thread to parallelize sending.
Reimplemented from THttpWSEngine.
Definition at line 35 of file TCivetweb.cxx.
|
protected |
Definition at line 32 of file TCivetweb.cxx.