NetlinkSocketReader (NetlinkSocket& ns)
| NetlinkSocketReader |
~NetlinkSocketReader ()
| ~NetlinkSocketReader |
[virtual]
int receive_data (NetlinkSocket& ns, uint32_t seqno, string& error_msg)
| receive_data |
Force the reader to receive data from the specified netlink socket.
Parameters:
ns | the netlink socket to receive the data from. |
seqno | the sequence number of the data to receive. |
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
const vector<uint8_t>& buffer ()
| buffer |
[const]
Get the buffer with the data that was received.
Returns: a reference to the buffer with the data that was received.
void nlsock_data (const vector<uint8_t>& buffer)
| nlsock_data |
[virtual]
Receive data from the netlink socket.
Note that this method is called asynchronously when the netlink socket has data to receive, therefore it should never be called directly by anything else except the netlink socket facility itself.
Parameters:
buffer | the buffer with the received data. |
Reimplemented from NetlinkSocketObserver.