![]() |
Project
|
An handler for a websocket message stream. More...
#include <HTTPParser.h>
Inherited by TestWSHandler, o2::framework::ClientWebSocketHandler, o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, and o2::framework::StatusWebSocketHandler.
Public Member Functions | |
| virtual | ~WebSocketHandler ()=default |
| virtual void | headers (std::map< std::string, std::string > const &headers) |
| Invoked when all the headers are received. | |
| virtual void | beginFragmentation () |
| FIXME: not implemented. | |
| virtual void | frame (char const *frame, size_t s) |
| virtual void | beginChunk () |
| Invoked before processing the next round of input. | |
| virtual void | endChunk () |
| Invoked whenever we have no more input to process. | |
| virtual void | endFragmentation () |
| FIXME: not implemented. | |
| virtual void | control (char const *frame, size_t s) |
| FIXME: not implemented. | |
Public Attributes | |
| 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 |
An handler for a websocket message stream.
Definition at line 149 of file HTTPParser.h.
|
virtualdefault |
|
inlinevirtual |
Invoked before processing the next round of input.
Reimplemented in o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, o2::framework::StatusWebSocketHandler, and o2::framework::ClientWebSocketHandler.
Definition at line 160 of file HTTPParser.h.
|
inlinevirtual |
FIXME: not implemented.
Reimplemented in o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, o2::framework::StatusWebSocketHandler, and o2::framework::ClientWebSocketHandler.
Definition at line 155 of file HTTPParser.h.
|
inlinevirtual |
FIXME: not implemented.
Reimplemented in o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, o2::framework::StatusWebSocketHandler, and o2::framework::ClientWebSocketHandler.
Definition at line 166 of file HTTPParser.h.
|
inlinevirtual |
Invoked whenever we have no more input to process.
Reimplemented in o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, o2::framework::StatusWebSocketHandler, and o2::framework::ClientWebSocketHandler.
Definition at line 162 of file HTTPParser.h.
|
inlinevirtual |
FIXME: not implemented.
Reimplemented in o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, o2::framework::StatusWebSocketHandler, and o2::framework::ClientWebSocketHandler.
Definition at line 164 of file HTTPParser.h.
Invoked when a frame it's parsed. Notice you do not own the data and you must not free the memory.
Reimplemented in o2::framework::StatusWebSocketHandler, o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, o2::framework::ClientWebSocketHandler, and TestWSHandler.
Definition at line 158 of file HTTPParser.h.
|
inlinevirtual |
Invoked when all the headers are received.
Reimplemented in o2::framework::ControlWebSocketHandler, o2::framework::GUIWebSocketHandler, o2::framework::StatusWebSocketHandler, and o2::framework::ClientWebSocketHandler.
Definition at line 153 of file HTTPParser.h.
| char* o2::framework::WebSocketHandler::pendingBuffer = nullptr |
A buffer large enough to contain the next frame to be processed.
Definition at line 173 of file HTTPParser.h.
| char* o2::framework::WebSocketHandler::pendingHeader = nullptr |
Definition at line 176 of file HTTPParser.h.
| size_t o2::framework::WebSocketHandler::pendingHeaderSize = 0 |
Bytes from an incomplete header.
Definition at line 175 of file HTTPParser.h.
| size_t o2::framework::WebSocketHandler::pendingSize = 0 |
Bytes which are already there from the previous, half delivered frame.
Definition at line 171 of file HTTPParser.h.
| size_t o2::framework::WebSocketHandler::remainingSize = 0 |
Bytes which are still to be received for the previous, half delivered frame.
Definition at line 169 of file HTTPParser.h.