![]() |
Kea 3.0.0
|
Abstract class used to create and send an outbound response. More...
#include <tcp_connection.h>
Public Member Functions | |
| TcpResponse () | |
| Constructor. | |
| virtual | ~TcpResponse () |
| Destructor. | |
| virtual void | consumeWireData (const size_t length) |
| Erases n bytes from the beginning of the wire data. | |
| virtual void | pack ()=0 |
| Prepares the wire data content for writing. | |
| bool | sendInProgress () |
| bool | wireDataAvail () const |
| Checks if the output buffer contains some data to be sent. | |
| 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 create and send an outbound response.
Definition at line 103 of file tcp_connection.h.
|
inline |
Constructor.
Definition at line 106 of file tcp_connection.h.
|
inlinevirtual |
Destructor.
Definition at line 110 of file tcp_connection.h.
|
virtual |
Erases n bytes from the beginning of the wire data.
| length | Number of bytes to be erased. |
Definition at line 27 of file tcp_connection.cc.
References isc::tcp::TcpMessage::wire_data_.
|
pure virtual |
Prepares the wire data content for writing.
Implemented in isc::tcp::TcpStreamResponse.
|
inline |
Definition at line 129 of file tcp_connection.h.
|
inline |
Checks if the output buffer contains some data to be sent.
Definition at line 117 of file tcp_connection.h.
References isc::tcp::TcpMessage::wire_data_.