Project
Loading...
Searching...
No Matches
TestWSHandler Class Reference

Inherits o2::framework::WebSocketHandler.

Public Member Functions

void frame (const char *f, size_t s) final
 
- Public Member Functions inherited from o2::framework::WebSocketHandler
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 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

std::vector< char const * > mFrame
 
std::vector< size_t > mSize
 
- Public Attributes inherited from o2::framework::WebSocketHandler
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.
 
charpendingBuffer = nullptr
 A buffer large enough to contain the next frame to be processed.
 
size_t pendingHeaderSize = 0
 Bytes from an incomplete header.
 
charpendingHeader = nullptr
 

Detailed Description

Definition at line 82 of file test_HTTPParser.cxx.

Member Function Documentation

◆ frame()

void TestWSHandler::frame ( const char frame,
size_t  s 
)
inlinefinalvirtual

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 87 of file test_HTTPParser.cxx.

Member Data Documentation

◆ mFrame

std::vector<char const*> TestWSHandler::mFrame

Definition at line 85 of file test_HTTPParser.cxx.

◆ mSize

std::vector<size_t> TestWSHandler::mSize

Definition at line 86 of file test_HTTPParser.cxx.


The documentation for this class was generated from the following file: