class XrlIoTcpUdpManager

A class that is the bridge between the I/O TCP/UDP communications and the XORP XRL interface. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 XrlIoTcpUdpManager (IoTcpUdpManager& io_tcpudp_manager, XrlRouter& xrl_router)

XrlIoTcpUdpManager

Constructor.

 ~XrlIoTcpUdpManager ()

~XrlIoTcpUdpManager

[virtual]

Destructor.

void  recv_event (const string& receiver_name, const string& sockid, const string& if_name, const string& vif_name, const IPvX& src_host, uint16_t src_port, const vector<uint8_t>& data)

recv_event

Data received event.

Parameters:

receiver_namethe name of the receiver to send the data to.
sockidunique socket ID.
if_namethe interface name the packet arrived on, if known. If unknown, then it is an empty string.
vif_namethe vif name the packet arrived on, if known. If unknown, then it is an empty string.
src_hostthe originating host IP address.
src_portthe originating host port number.
datathe data received.

Reimplemented from IoTcpUdpManagerReceiver.

void  inbound_connect_event (const string& receiver_name, const string& sockid, const IPvX& src_host, uint16_t src_port, const string& new_sockid)

inbound_connect_event

Inbound connection request received event.

It applies only to TCP sockets.

Parameters:

receiver_namethe name of the receiver to send the event to.
sockidunique socket ID.
src_hostthe originating host IP address.
src_portthe originating host port number.
new_sockidthe new socket ID.

Reimplemented from IoTcpUdpManagerReceiver.

void  outgoing_connect_event (int family, const string& receiver_name, const string& sockid)

outgoing_connect_event

Outgoing connection request completed event.

It applies only to TCP sockets.

Parameters:

familythe address family (AF_INET or AF_INET6 for IPv4 and IPv6 respectively).
receiver_namethe name of the receiver to send the event to.
sockidunique socket ID.

Reimplemented from IoTcpUdpManagerReceiver.

void  error_event (int family, const string& receiver_name, const string& sockid, const string& error, bool fatal)

error_event

Error occured event.

Parameters:

familythe address family (AF_INET or AF_INET6 for IPv4 and IPv6 respectively).
receiver_namethe name of the receiver to send the event to.
sockidunique socket ID.
errora textual description of the error.
fatalindication of whether socket is shutdown because of error.

Reimplemented from IoTcpUdpManagerReceiver.

void  disconnect_event (int family, const string& receiver_name, const string& sockid)

disconnect_event

Connection closed by peer event.

It applies only to TCP sockets. This method is not called if the socket is gracefully closed through close().

Parameters:

familythe address family (AF_INET or AF_INET6 for IPv4 and IPv6 respectively).
receiver_namethe name of the receiver to send the event to.
sockidunique socket ID.

Reimplemented from IoTcpUdpManagerReceiver.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:50 2008, using kdoc 2.0a54+XORP.