xorp

XrlTestPeerTarget Class Reference

Inheritance diagram for XrlTestPeerTarget:
XrlTestPeerTargetBase

List of all members.

Public Member Functions

 XrlTestPeerTarget (XrlRouter *r, TestPeer &test_peer, bool trace)
XrlCmdError common_0_1_get_target_name (string &name)
 Get name of Xrl Target.
XrlCmdError common_0_1_startup ()
 Pure-virtual function that needs to be implemented to:
XrlCmdError common_0_1_get_version (string &version)
 Get version string from Xrl Target.
XrlCmdError common_0_1_get_status (uint32_t &status, string &reason)
 Get status from Xrl Target.
XrlCmdError common_0_1_shutdown ()
 shutdown target
XrlCmdError test_peer_0_1_register (const string &coordinator, const uint32_t &genid)
 Register for receiving packets and events.
XrlCmdError test_peer_0_1_packetisation (const string &protocol)
 Packetisation style.
XrlCmdError test_peer_0_1_use_4byte_asnums (const bool &use)
 Use 4byte asnums.
XrlCmdError test_peer_0_1_connect (const string &host, const uint32_t &port)
 Make a tcp connection to the specified host and port.
XrlCmdError test_peer_0_1_listen (const string &address, const uint32_t &port)
 Accept connections from the specified host on the specified port.
XrlCmdError test_peer_0_1_bind (const string &address, const uint32_t &port)
 Bind the port but don't perform the listen or accept.
XrlCmdError test_peer_0_1_send (const vector< uint8_t > &data)
 Send data to the peer.
XrlCmdError test_peer_0_1_disconnect ()
 Disconnect from the peer.
XrlCmdError test_peer_0_1_reset ()
 Reset the peer.
XrlCmdError test_peer_0_1_terminate ()
 Terminate the test peer process.

Private Attributes

TestPeer_test_peer
bool _trace

Member Function Documentation

XrlCmdError XrlTestPeerTarget::common_0_1_startup ( ) [inline, virtual]

Pure-virtual function that needs to be implemented to:

Request a startup of Xrl Target

Implements XrlTestPeerTargetBase.

XrlCmdError XrlTestPeerTarget::test_peer_0_1_bind ( const string &  address,
const uint32_t &  port 
) [virtual]

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

Parameters:
addresslocal address.
portlocal port number.

Implements XrlTestPeerTargetBase.

XrlCmdError XrlTestPeerTarget::test_peer_0_1_connect ( const string &  host,
const uint32_t &  port 
) [virtual]

Make a tcp connection to the specified host and port.

Parameters:
hostname.
portnumber.

Implements XrlTestPeerTargetBase.

XrlCmdError XrlTestPeerTarget::test_peer_0_1_listen ( const string &  address,
const uint32_t &  port 
) [virtual]

Accept connections from the specified host on the specified port.

Parameters:
hostname.
portnumber.

Implements XrlTestPeerTargetBase.


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