xorp

XrlTestPeerV0p1Client Class Reference

List of all members.

Public Types

typedef XorpCallback1< void,
const XrlError & >::RefPtr 
RegisterCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
PacketisationCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
Use4ByteAsnumsCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ConnectCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ListenCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
BindCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SendCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DisconnectCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ResetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
TerminateCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
RegisterCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
PacketisationCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
Use4ByteAsnumsCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ConnectCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ListenCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
BindCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SendCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DisconnectCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ResetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
TerminateCB

Public Member Functions

 XrlTestPeerV0p1Client (XrlSender *s)
bool send_register (const char *dst_xrl_target_name, const string &coordinator, const uint32_t &genid, const RegisterCB &cb)
 Send Xrl intended to:
bool send_packetisation (const char *dst_xrl_target_name, const string &protocol, const PacketisationCB &cb)
 Send Xrl intended to:
bool send_use_4byte_asnums (const char *dst_xrl_target_name, const bool &use, const Use4ByteAsnumsCB &cb)
 Send Xrl intended to:
bool send_connect (const char *dst_xrl_target_name, const string &host, const uint32_t &port, const ConnectCB &cb)
 Send Xrl intended to:
bool send_listen (const char *dst_xrl_target_name, const string &address, const uint32_t &port, const ListenCB &cb)
 Send Xrl intended to:
bool send_bind (const char *dst_xrl_target_name, const string &address, const uint32_t &port, const BindCB &cb)
 Send Xrl intended to:
bool send_send (const char *dst_xrl_target_name, const vector< uint8_t > &data, const SendCB &cb)
 Send Xrl intended to:
bool send_disconnect (const char *dst_xrl_target_name, const DisconnectCB &cb)
 Send Xrl intended to:
bool send_reset (const char *dst_xrl_target_name, const ResetCB &cb)
 Send Xrl intended to:
bool send_terminate (const char *dst_xrl_target_name, const TerminateCB &cb)
 Send Xrl intended to:
 XrlTestPeerV0p1Client (XrlSender *s)
bool send_register (const char *dst_xrl_target_name, const string &coordinator, const uint32_t &genid, const RegisterCB &cb)
 Send Xrl intended to:
bool send_packetisation (const char *dst_xrl_target_name, const string &protocol, const PacketisationCB &cb)
 Send Xrl intended to:
bool send_use_4byte_asnums (const char *dst_xrl_target_name, const bool &use, const Use4ByteAsnumsCB &cb)
 Send Xrl intended to:
bool send_connect (const char *dst_xrl_target_name, const string &host, const uint32_t &port, const ConnectCB &cb)
 Send Xrl intended to:
bool send_listen (const char *dst_xrl_target_name, const string &address, const uint32_t &port, const ListenCB &cb)
 Send Xrl intended to:
bool send_bind (const char *dst_xrl_target_name, const string &address, const uint32_t &port, const BindCB &cb)
 Send Xrl intended to:
bool send_send (const char *dst_xrl_target_name, const vector< uint8_t > &data, const SendCB &cb)
 Send Xrl intended to:
bool send_disconnect (const char *dst_xrl_target_name, const DisconnectCB &cb)
 Send Xrl intended to:
bool send_reset (const char *dst_xrl_target_name, const ResetCB &cb)
 Send Xrl intended to:
bool send_terminate (const char *dst_xrl_target_name, const TerminateCB &cb)
 Send Xrl intended to:

Protected Attributes

XrlSender_sender

Static Private Member Functions

static void unmarshall_register (const XrlError &e, XrlArgs *a, RegisterCB cb)
static void unmarshall_packetisation (const XrlError &e, XrlArgs *a, PacketisationCB cb)
static void unmarshall_use_4byte_asnums (const XrlError &e, XrlArgs *a, Use4ByteAsnumsCB cb)
static void unmarshall_connect (const XrlError &e, XrlArgs *a, ConnectCB cb)
static void unmarshall_listen (const XrlError &e, XrlArgs *a, ListenCB cb)
static void unmarshall_bind (const XrlError &e, XrlArgs *a, BindCB cb)
static void unmarshall_send (const XrlError &e, XrlArgs *a, SendCB cb)
static void unmarshall_disconnect (const XrlError &e, XrlArgs *a, DisconnectCB cb)
static void unmarshall_reset (const XrlError &e, XrlArgs *a, ResetCB cb)
static void unmarshall_terminate (const XrlError &e, XrlArgs *a, TerminateCB cb)
static void unmarshall_register (const XrlError &e, XrlArgs *a, RegisterCB cb)
static void unmarshall_packetisation (const XrlError &e, XrlArgs *a, PacketisationCB cb)
static void unmarshall_use_4byte_asnums (const XrlError &e, XrlArgs *a, Use4ByteAsnumsCB cb)
static void unmarshall_connect (const XrlError &e, XrlArgs *a, ConnectCB cb)
static void unmarshall_listen (const XrlError &e, XrlArgs *a, ListenCB cb)
static void unmarshall_bind (const XrlError &e, XrlArgs *a, BindCB cb)
static void unmarshall_send (const XrlError &e, XrlArgs *a, SendCB cb)
static void unmarshall_disconnect (const XrlError &e, XrlArgs *a, DisconnectCB cb)
static void unmarshall_reset (const XrlError &e, XrlArgs *a, ResetCB cb)
static void unmarshall_terminate (const XrlError &e, XrlArgs *a, TerminateCB cb)

Private Attributes

auto_ptr< Xrlap_xrl_register
auto_ptr< Xrlap_xrl_packetisation
auto_ptr< Xrlap_xrl_use_4byte_asnums
auto_ptr< Xrlap_xrl_connect
auto_ptr< Xrlap_xrl_listen
auto_ptr< Xrlap_xrl_bind
auto_ptr< Xrlap_xrl_send
auto_ptr< Xrlap_xrl_disconnect
auto_ptr< Xrlap_xrl_reset
auto_ptr< Xrlap_xrl_terminate

Member Function Documentation

bool XrlTestPeerV0p1Client::send_bind ( const char *  dst_xrl_target_name,
const string &  address,
const uint32_t &  port,
const BindCB &  cb 
)

Send Xrl intended to:

Bind the port but don't perform the listen or accept.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
addresslocal address.
portlocal port number.
bool XrlTestPeerV0p1Client::send_bind ( const char *  dst_xrl_target_name,
const string &  address,
const uint32_t &  port,
const BindCB &  cb 
)

Send Xrl intended to:

Bind the port but don't perform the listen or accept.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
addresslocal address.
portlocal port number.
bool XrlTestPeerV0p1Client::send_connect ( const char *  dst_xrl_target_name,
const string &  host,
const uint32_t &  port,
const ConnectCB &  cb 
)

Send Xrl intended to:

Make a tcp connection to the specified host and port.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
hostname.
portnumber.
bool XrlTestPeerV0p1Client::send_connect ( const char *  dst_xrl_target_name,
const string &  host,
const uint32_t &  port,
const ConnectCB &  cb 
)

Send Xrl intended to:

Make a tcp connection to the specified host and port.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
hostname.
portnumber.
bool XrlTestPeerV0p1Client::send_disconnect ( const char *  dst_xrl_target_name,
const DisconnectCB &  cb 
)

Send Xrl intended to:

Disconnect from the peer.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_disconnect ( const char *  dst_xrl_target_name,
const DisconnectCB &  cb 
)

Send Xrl intended to:

Disconnect from the peer.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_listen ( const char *  dst_xrl_target_name,
const string &  address,
const uint32_t &  port,
const ListenCB &  cb 
)

Send Xrl intended to:

Listen for connections on this address and port.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
addresslocal address.
portlocal port number.
bool XrlTestPeerV0p1Client::send_listen ( const char *  dst_xrl_target_name,
const string &  address,
const uint32_t &  port,
const ListenCB &  cb 
)

Send Xrl intended to:

Listen for connections on this address and port.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
addresslocal address.
portlocal port number.
bool XrlTestPeerV0p1Client::send_packetisation ( const char *  dst_xrl_target_name,
const string &  protocol,
const PacketisationCB &  cb 
)

Send Xrl intended to:

Packetisation style.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_packetisation ( const char *  dst_xrl_target_name,
const string &  protocol,
const PacketisationCB &  cb 
)

Send Xrl intended to:

Packetisation style.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_register ( const char *  dst_xrl_target_name,
const string &  coordinator,
const uint32_t &  genid,
const RegisterCB &  cb 
)

Send Xrl intended to:

Register for receiving packets and events. The registering process must implement the "datain" interface in order to receive data.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
genidGeneration id.
bool XrlTestPeerV0p1Client::send_register ( const char *  dst_xrl_target_name,
const string &  coordinator,
const uint32_t &  genid,
const RegisterCB &  cb 
)

Send Xrl intended to:

Register for receiving packets and events. The registering process must implement the "datain" interface in order to receive data.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
genidGeneration id.
bool XrlTestPeerV0p1Client::send_reset ( const char *  dst_xrl_target_name,
const ResetCB &  cb 
)

Send Xrl intended to:

Reset the peer. Take it back to a known state.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_reset ( const char *  dst_xrl_target_name,
const ResetCB &  cb 
)

Send Xrl intended to:

Reset the peer. Take it back to a known state.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_send ( const char *  dst_xrl_target_name,
const vector< uint8_t > &  data,
const SendCB &  cb 
)

Send Xrl intended to:

Send data Send data to the peer.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_send ( const char *  dst_xrl_target_name,
const vector< uint8_t > &  data,
const SendCB &  cb 
)

Send Xrl intended to:

Send data Send data to the peer.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_terminate ( const char *  dst_xrl_target_name,
const TerminateCB &  cb 
)

Send Xrl intended to:

Terminate the test peer process.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_terminate ( const char *  dst_xrl_target_name,
const TerminateCB &  cb 
)

Send Xrl intended to:

Terminate the test peer process.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_use_4byte_asnums ( const char *  dst_xrl_target_name,
const bool &  use,
const Use4ByteAsnumsCB &  cb 
)

Send Xrl intended to:

Set whether to assume 2 or 4 byte AS numbers when decoding.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlTestPeerV0p1Client::send_use_4byte_asnums ( const char *  dst_xrl_target_name,
const bool &  use,
const Use4ByteAsnumsCB &  cb 
)

Send Xrl intended to:

Set whether to assume 2 or 4 byte AS numbers when decoding.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.

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