![]() |
Project
|
Inherits o2::framework::WebSocketHandler.
Public Member Functions | |
ClientWebSocketHandler (WSDriverClient &client) | |
void | headers (std::map< std::string, std::string > const &headers) override |
Invoked when all the headers are received. | |
void | beginFragmentation () override |
FIXME: not implemented by the backend. | |
void | frame (char const *frame, size_t s) override |
void | endFragmentation () override |
FIXME: not implemented. | |
void | control (char const *frame, size_t s) override |
FIXME: not implemented. | |
void | beginChunk () override |
void | endChunk () override |
![]() | |
virtual | ~WebSocketHandler ()=default |
Public Attributes | |
WSDriverClient & | mClient |
![]() | |
size_t | remainingSize = 0 |
Bytes which are still to be received for the previous, half delivered frame. | |
size_t | pendingSize = 0 |
Bytes which are already there from the previous, half delivered frame. | |
char * | pendingBuffer = nullptr |
A buffer large enough to contain the next frame to be processed. | |
size_t | pendingHeaderSize = 0 |
Bytes from an incomplete header. | |
char * | pendingHeader = nullptr |
Definition at line 33 of file WSDriverClient.cxx.
|
inline |
Definition at line 34 of file WSDriverClient.cxx.
|
inlineoverridevirtual |
Invoked at the beginning of some incoming data. We simply reset actions which need to happen on a per chunk basis.
Reimplemented from o2::framework::WebSocketHandler.
Definition at line 57 of file WSDriverClient.cxx.
|
inlineoverridevirtual |
FIXME: not implemented by the backend.
Reimplemented from o2::framework::WebSocketHandler.
Definition at line 43 of file WSDriverClient.cxx.
|
inlineoverridevirtual |
FIXME: not implemented.
Reimplemented from o2::framework::WebSocketHandler.
Definition at line 53 of file WSDriverClient.cxx.
|
inlineoverridevirtual |
Invoked after we have processed all the available incoming data. In this particular case we must handle the metric callbacks, if needed.
Reimplemented from o2::framework::WebSocketHandler.
Definition at line 64 of file WSDriverClient.cxx.
|
inlineoverridevirtual |
FIXME: not implemented.
Reimplemented from o2::framework::WebSocketHandler.
Definition at line 52 of file WSDriverClient.cxx.
|
inlineoverridevirtual |
Invoked when a frame it's parsed. Notice you do not own the data and you must not free the memory.
Reimplemented from o2::framework::WebSocketHandler.
Definition at line 47 of file WSDriverClient.cxx.
|
inlineoverridevirtual |
Invoked when all the headers are received.
Reimplemented from o2::framework::WebSocketHandler.
Definition at line 39 of file WSDriverClient.cxx.
WSDriverClient& o2::framework::ClientWebSocketHandler::mClient |
The driver context were we want to accumulate changes which we got from the websocket.
Definition at line 70 of file WSDriverClient.cxx.