xorp

XrlSocket4UserV0p1Client Class Reference

List of all members.

Public Types

typedef XorpCallback1< void,
const XrlError & >::RefPtr 
RecvEventCB
typedef XorpCallback2< void,
const XrlError &, const bool * >
::RefPtr 
InboundConnectEventCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
OutgoingConnectEventCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ErrorEventCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DisconnectEventCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
RecvEventCB
typedef XorpCallback2< void,
const XrlError &, const bool * >
::RefPtr 
InboundConnectEventCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
OutgoingConnectEventCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ErrorEventCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DisconnectEventCB

Public Member Functions

 XrlSocket4UserV0p1Client (XrlSender *s)
bool send_recv_event (const char *dst_xrl_target_name, const string &sockid, const string &if_name, const string &vif_name, const IPv4 &src_host, const uint32_t &src_port, const vector< uint8_t > &data, const RecvEventCB &cb)
 Send Xrl intended to:
bool send_inbound_connect_event (const char *dst_xrl_target_name, const string &sockid, const IPv4 &src_host, const uint32_t &src_port, const string &new_sockid, const InboundConnectEventCB &cb)
 Send Xrl intended to:
bool send_outgoing_connect_event (const char *dst_xrl_target_name, const string &sockid, const OutgoingConnectEventCB &cb)
 Send Xrl intended to:
bool send_error_event (const char *dst_xrl_target_name, const string &sockid, const string &error, const bool &fatal, const ErrorEventCB &cb)
 Send Xrl intended to:
bool send_disconnect_event (const char *dst_xrl_target_name, const string &sockid, const DisconnectEventCB &cb)
 Send Xrl intended to:
 XrlSocket4UserV0p1Client (XrlSender *s)
bool send_recv_event (const char *dst_xrl_target_name, const string &sockid, const string &if_name, const string &vif_name, const IPv4 &src_host, const uint32_t &src_port, const vector< uint8_t > &data, const RecvEventCB &cb)
 Send Xrl intended to:
bool send_inbound_connect_event (const char *dst_xrl_target_name, const string &sockid, const IPv4 &src_host, const uint32_t &src_port, const string &new_sockid, const InboundConnectEventCB &cb)
 Send Xrl intended to:
bool send_outgoing_connect_event (const char *dst_xrl_target_name, const string &sockid, const OutgoingConnectEventCB &cb)
 Send Xrl intended to:
bool send_error_event (const char *dst_xrl_target_name, const string &sockid, const string &error, const bool &fatal, const ErrorEventCB &cb)
 Send Xrl intended to:
bool send_disconnect_event (const char *dst_xrl_target_name, const string &sockid, const DisconnectEventCB &cb)
 Send Xrl intended to:

Protected Attributes

XrlSender_sender

Static Private Member Functions

static void unmarshall_recv_event (const XrlError &e, XrlArgs *a, RecvEventCB cb)
static void unmarshall_inbound_connect_event (const XrlError &e, XrlArgs *a, InboundConnectEventCB cb)
static void unmarshall_outgoing_connect_event (const XrlError &e, XrlArgs *a, OutgoingConnectEventCB cb)
static void unmarshall_error_event (const XrlError &e, XrlArgs *a, ErrorEventCB cb)
static void unmarshall_disconnect_event (const XrlError &e, XrlArgs *a, DisconnectEventCB cb)
static void unmarshall_recv_event (const XrlError &e, XrlArgs *a, RecvEventCB cb)
static void unmarshall_inbound_connect_event (const XrlError &e, XrlArgs *a, InboundConnectEventCB cb)
static void unmarshall_outgoing_connect_event (const XrlError &e, XrlArgs *a, OutgoingConnectEventCB cb)
static void unmarshall_error_event (const XrlError &e, XrlArgs *a, ErrorEventCB cb)
static void unmarshall_disconnect_event (const XrlError &e, XrlArgs *a, DisconnectEventCB cb)

Private Attributes

auto_ptr< Xrlap_xrl_recv_event
auto_ptr< Xrlap_xrl_inbound_connect_event
auto_ptr< Xrlap_xrl_outgoing_connect_event
auto_ptr< Xrlap_xrl_error_event
auto_ptr< Xrlap_xrl_disconnect_event

Member Function Documentation

bool XrlSocket4UserV0p1Client::send_disconnect_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const DisconnectEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when the peer has closed the connection. It applies only to TCP sockets. Note that the socket itself is left open and must be explicitly closed.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
bool XrlSocket4UserV0p1Client::send_disconnect_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const DisconnectEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when the peer has closed the connection. It applies only to TCP sockets. Note that the socket itself is left open and must be explicitly closed.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
bool XrlSocket4UserV0p1Client::send_error_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const string &  error,
const bool &  fatal,
const ErrorEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when an error occurs.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
errora textual description of the error.
fatalindication of whether socket is shutdown because of error.
bool XrlSocket4UserV0p1Client::send_error_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const string &  error,
const bool &  fatal,
const ErrorEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when an error occurs.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
errora textual description of the error.
fatalindication of whether socket is shutdown because of error.
bool XrlSocket4UserV0p1Client::send_inbound_connect_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const IPv4 src_host,
const uint32_t &  src_port,
const string &  new_sockid,
const InboundConnectEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when a connection request is received from an IPv4 source. It applies only to TCP sockets.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
src_hostthe connecting host.
src_portthe connecting IP port.
new_sockidthe identifier associated with the new socket that has been created to handle the new connection.
bool XrlSocket4UserV0p1Client::send_inbound_connect_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const IPv4 src_host,
const uint32_t &  src_port,
const string &  new_sockid,
const InboundConnectEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when a connection request is received from an IPv4 source. It applies only to TCP sockets.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
src_hostthe connecting host.
src_portthe connecting IP port.
new_sockidthe identifier associated with the new socket that has been created to handle the new connection.
bool XrlSocket4UserV0p1Client::send_outgoing_connect_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const OutgoingConnectEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when an outgoing connection request originated by the local host is completed. It applies only to TCP sockets. Note that if the connection failed, the error_event will be dispatched instead.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
bool XrlSocket4UserV0p1Client::send_outgoing_connect_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const OutgoingConnectEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when an outgoing connection request originated by the local host is completed. It applies only to TCP sockets. Note that if the connection failed, the error_event will be dispatched instead.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
bool XrlSocket4UserV0p1Client::send_recv_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const string &  if_name,
const string &  vif_name,
const IPv4 src_host,
const uint32_t &  src_port,
const vector< uint8_t > &  data,
const RecvEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when a packet arrives from an IPv4 source.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
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.
src_portthe originating IP port.
datathe data received.
bool XrlSocket4UserV0p1Client::send_recv_event ( const char *  dst_xrl_target_name,
const string &  sockid,
const string &  if_name,
const string &  vif_name,
const IPv4 src_host,
const uint32_t &  src_port,
const vector< uint8_t > &  data,
const RecvEventCB &  cb 
)

Send Xrl intended to:

Method invoked by target implementing socket4/0.1 when a packet arrives from an IPv4 source.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
sockidthe identifier associated with socket where the event occurred.
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.
src_portthe originating IP port.
datathe data received.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations