Kea 2.7.6
|
Abstract class used to receive an inbound message. More...
#include <tcp_connection.h>
Public Member Functions | |
virtual | ~TcpRequest () |
Destructor. | |
virtual std::string | logFormatRequest (const size_t limit=0) const =0 |
Returns request contents formatted for log output. | |
virtual bool | needData () const =0 |
Returns true if the request is incomplete. | |
virtual size_t | postBuffer (const void *buf, const size_t nbytes)=0 |
Adds data to an incomplete request. | |
virtual void | unpack ()=0 |
Unpacks wire data once the message has been completely received. | |
Public Member Functions inherited from isc::tcp::TcpMessage | |
virtual | ~TcpMessage () |
Destructor. | |
const uint8_t * | getWireData () const |
Returns pointer to the first byte of the wire data. | |
size_t | getWireDataSize () const |
Returns current size of the wire data. | |
Additional Inherited Members | |
Protected Attributes inherited from isc::tcp::TcpMessage | |
WireData | wire_data_ |
Buffer used for data in wire format data. | |
Abstract class used to receive an inbound message.
Definition at line 62 of file tcp_connection.h.
|
inlinevirtual |
Destructor.
Definition at line 65 of file tcp_connection.h.
|
pure virtual |
Returns request contents formatted for log output.
limit | Maximum length of the buffer to be output. If the limit is 0, the length of the output is unlimited. |
Implemented in isc::tcp::TcpStreamRequest.
|
pure virtual |
Returns true if the request is incomplete.
Implemented in isc::tcp::TcpStreamRequest.
|
pure virtual |
Adds data to an incomplete request.
buf | A pointer to the buffer holding the data. |
nbytes | Size of the data within the buffer. |
Implemented in isc::tcp::TcpStreamRequest.
|
pure virtual |
Unpacks wire data once the message has been completely received.
Implemented in isc::tcp::TcpStreamRequest.