![]() |
Kea 3.1.1
|
Lease Query specific wrapper around DHCPx packet. More...
#include <blq_msg.h>
Public Member Functions | |
BlqMsg (dhcp::PktPtr pkt) | |
Constructor. | |
virtual | ~BlqMsg () |
Destructor. | |
dhcp::PktPtr | getPkt () const |
Returns a pointer to the DHCPx packet. | |
tcp::WireData & | getWireData () |
Returns a reference to the wire data. | |
size_t | getWireSize () const |
Returns size of the packed wire data. | |
Xid | getXid () const |
Returns the transaction id. | |
void | pack () |
Packs the packet into wire form ready for TCP transmission. | |
void | setXid (const Xid &xid) |
Sets the transaction id. | |
Protected Attributes | |
dhcp::PktPtr | pkt_ |
The DHCP(4/6) packet containing the query. | |
tcp::WireData | wire_data_ |
Holds the TCP stream wire form of the query. | |
Lease Query specific wrapper around DHCPx packet.
The class is intended as a wrapper around DHCP<4/6> packets to isolate lease query infrastructure from protocol specifics as well as provide an opportunity to house and add lease query specifics.
|
inline |
Constructor.
pkt | Pointer to the DHCPx lease query packet |
Definition at line 29 of file blq_msg.h.
References isc_throw, and pkt_.
Referenced by isc::lease_query::BlqQuery::BlqQuery(), and isc::lease_query::BlqResponse::BlqResponse().
|
inlinevirtual |
|
inline |
Returns a pointer to the DHCPx packet.
Definition at line 53 of file blq_msg.h.
References pkt_.
Referenced by isc::lease_query::BlqQuery::getQuery(), and isc::lease_query::BlqResponse::getResponse().
|
inline |
Returns a reference to the wire data.
Definition at line 80 of file blq_msg.h.
References wire_data_.
|
inline |
Returns size of the packed wire data.
Definition at line 75 of file blq_msg.h.
References wire_data_.
|
inline |
|
inline |
Packs the packet into wire form ready for TCP transmission.
Definition at line 58 of file blq_msg.h.
References pkt_, and wire_data_.
|
inline |
|
protected |
|
protected |
Holds the TCP stream wire form of the query.
Definition at line 89 of file blq_msg.h.
Referenced by getWireData(), getWireSize(), and pack().