Definition at line 38 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. | |
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. | |
Public Member Functions inherited from THttpWSEngine | |
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. | |
Protected Member Functions inherited from THttpWSEngine | |
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 46 of file TCivetweb.cxx.
|
virtualdefault |
Implements THttpWSEngine.
Definition at line 52 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Implements THttpWSEngine.
Definition at line 50 of file TCivetweb.cxx.
Implements THttpWSEngine.
Definition at line 59 of file TCivetweb.cxx.
|
inlineoverridevirtual |
Envelope for sending string via the websocket.
Reimplemented from THttpWSEngine.
Definition at line 77 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 69 of file TCivetweb.cxx.
|
inlineoverrideprotectedvirtual |
True websocket requires extra thread to parallelize sending.
Reimplemented from THttpWSEngine.
Definition at line 43 of file TCivetweb.cxx.
|
protected |
Definition at line 40 of file TCivetweb.cxx.