![]() |
Kea 3.3.3
|
Base class for TCP messages. More...
#include <tcp_connection.h>
Public Member Functions | |
| virtual | ~TcpMessage ()=default |
| Destructor. | |
| virtual const uint8_t * | getWireData () const =0 |
| Returns pointer to the first byte of the wire data. | |
| virtual size_t | getWireDataSize () const =0 |
| Returns current size of the wire data. | |
Protected Member Functions | |
| const uint8_t * | getWireData (size_t position) const |
| Returns pointer to current byte of the wire data. | |
| size_t | getWireDataSize (size_t position) const |
| Returns current size of the wire data. | |
Protected Attributes | |
| size_t | position_ |
| Position in the data. | |
| WireData | wire_data_ |
| Buffer used for data in wire format data. | |
Base class for TCP messages.
Definition at line 31 of file tcp_connection.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Returns pointer to the first byte of the wire data.
Implemented in isc::tcp::TcpRequest, and isc::tcp::TcpResponse.
Referenced by isc::tcp::TcpRequest::getWireData(), and isc::tcp::TcpResponse::getWireData().
|
inlineprotected |
Returns pointer to current byte of the wire data.
| position | Position inside the data. |
| InvalidOperation | if position is out of bounds. |
Definition at line 48 of file tcp_connection.h.
References isc_throw, and wire_data_.
|
pure virtual |
Returns current size of the wire data.
Implemented in isc::tcp::TcpRequest, and isc::tcp::TcpResponse.
Referenced by isc::tcp::TcpRequest::getWireDataSize(), and isc::tcp::TcpResponse::getWireDataSize().
|
inlineprotected |
Returns current size of the wire data.
| position | Position inside the data. |
| InvalidOperation | if position is out of bounds. |
Definition at line 62 of file tcp_connection.h.
References isc_throw, and wire_data_.
|
protected |
Position in the data.
Definition at line 74 of file tcp_connection.h.
|
protected |
Buffer used for data in wire format data.
Definition at line 71 of file tcp_connection.h.
Referenced by isc::tcp::TcpResponse::consumeWireData(), getWireData(), getWireDataSize(), isc::tcp::TcpStreamRequest::logFormatRequest(), isc::tcp::TcpStreamRequest::needData(), isc::tcp::TcpStreamResponse::pack(), isc::tcp::TcpStreamRequest::postBuffer(), isc::tcp::TcpStreamRequest::unpack(), and isc::tcp::TcpResponse::wireDataAvail().