class RoutingSocket
|
RoutingSocket class opens a routing socket and forwards data arriving
on the socket to RoutingSocketObservers. More... |
|
|
Public Types
Public Methods
RoutingSocket class opens a routing socket and forwards data arriving
on the socket to RoutingSocketObservers. The RoutingSocket hooks itself
into the EventLoop and activity usually happens asynchronously.
~RoutingSocket ()
| ~RoutingSocket |
int start (int af = AF_UNSPEC)
| start |
Start the routing socket operation.
Parameters:
Returns: XORP_OK on success, otherwise XORP_ERROR.
Stop the routing socket operation.
Returns: XORP_OK on success, otherwise XORP_ERROR.
inline bool is_open ()
| is_open |
[const]
ssize_t write (const void* data, size_t nbytes)
| write |
Write data to routing socket. Update sequence number associated
with routing socket.
inline uint32_t seqno ()
| seqno |
[const]
Get sequence number for next message written into kernel.
Sequence number is derived of the instance number of the routing
socket and a 16bit counter.
[const]
Get cached process identifier value.
void force_read ()
| force_read |
Force socket to read data - usually performed after writing
a request that the kernel will answer, eg after writing a route
lookup.
Use sparingly, with caution, and at your own risk.
Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:10 2003, using kdoc 2.0a54+XORP. |