class RoutingSocket

RoutingSocket class opens a routing socket and forwards data arriving on the socket to RoutingSocketObservers. More...

Definition#include <routing_socket.hh>
Inherited byFtiConfigEntryGetRtsock, FtiConfigEntryObserverRtsock, FtiConfigEntrySetRtsock, FtiConfigTableObserverRtsock, FtiConfigTableSetRtsock, IfConfigObserverRtsock
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


Detailed Description

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 (EventLoop& e)

RoutingSocket

 ~RoutingSocket ()

~RoutingSocket

int  start (int af = AF_UNSPEC)

start

Start the routing socket operation.

Parameters:
afthe address family.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  stop ()

stop

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.

inline pid_t  pid ()

pid

[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.

typedef list<RoutingSocketObserver*> ObserverList

ObserverList


Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:10 2003, using kdoc 2.0a54+XORP.