class RoutingSocket

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

Definition#include <rtsock.hh>
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, int af = AF_UNSPEC)
throw(FtiError)

RoutingSocket

 ~RoutingSocket ()

~RoutingSocket

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 Wed Dec 11 16:50:56 2002, using kdoc 2.0a54+XORP.