Implementation of THttpWSEngine for Civetweb
Definition at line 32 of file TCivetweb.cxx.
Public Member Functions | |
TCivetwebWSEngine (struct mg_connection *conn) | |
~TCivetwebWSEngine () override=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. | |
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. | |
![]() | |
virtual | ~THttpWSEngine ()=default |
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. | |
Protected Member Functions | |
Bool_t | SupportSendThrd () const override |
True websocket requires extra thread to parallelize sending. | |
![]() | |
THttpWSEngine ()=default | |
virtual Bool_t | CanSendDirectly () |
One always can send data to websocket - as long as previous send operation completed. | |
Protected Attributes | |
struct mg_connection * | fWSconn |
|
inline |
Definition at line 40 of file TCivetweb.cxx.
|
overridedefault |
|
inlineoverridevirtual |
Implements THttpWSEngine.
Definition at line 46 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Implements THttpWSEngine.
Definition at line 44 of file TCivetweb.cxx.
Implements THttpWSEngine.
Definition at line 53 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Envelope for sending string via the websocket.
Reimplemented from THttpWSEngine.
Definition at line 71 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 63 of file TCivetweb.cxx.
|
inlineoverrideprotectedvirtual |
True websocket requires extra thread to parallelize sending.
Reimplemented from THttpWSEngine.
Definition at line 37 of file TCivetweb.cxx.
|
protected |
Definition at line 34 of file TCivetweb.cxx.