XrlTestPeerV0p1Client (XrlSender* s)
| XrlTestPeerV0p1Client |
~XrlTestPeerV0p1Client ()
| ~XrlTestPeerV0p1Client |
[virtual]
typedef XorpCallback1<void, const XrlError&>::RefPtr RegisterCB | RegisterCB |
bool send_register (
const char* dst_xrl_target_name,
const string& coordinator,
const uint32_t& genid,
const RegisterCB& cb
)
| send_register |
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_name | the Xrl target name of the destination. |
genid | Generation id. |
typedef XorpCallback1<void, const XrlError&>::RefPtr PacketisationCB | PacketisationCB |
bool send_packetisation (
const char* dst_xrl_target_name,
const string& protocol,
const PacketisationCB& cb
)
| send_packetisation |
Send Xrl intended to:
Packetisation style.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
typedef XorpCallback1<void, const XrlError&>::RefPtr Use4ByteAsnumsCB | Use4ByteAsnumsCB |
bool send_use_4byte_asnums (
const char* dst_xrl_target_name,
const bool& use,
const Use4ByteAsnumsCB& cb
)
| send_use_4byte_asnums |
Send Xrl intended to:
Set whether to assume 2 or 4 byte AS numbers when decoding.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
typedef XorpCallback1<void, const XrlError&>::RefPtr ConnectCB | ConnectCB |
bool send_connect (
const char* dst_xrl_target_name,
const string& host,
const uint32_t& port,
const ConnectCB& cb
)
| send_connect |
Send Xrl intended to:
Make a tcp connection to the specified host and port.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
host | name. |
port | number. |
typedef XorpCallback1<void, const XrlError&>::RefPtr ListenCB | ListenCB |
bool send_listen (
const char* dst_xrl_target_name,
const string& address,
const uint32_t& port,
const ListenCB& cb
)
| send_listen |
Send Xrl intended to:
Listen for connections on this address and port.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
address | local address. |
port | local port number. |
typedef XorpCallback1<void, const XrlError&>::RefPtr BindCB | BindCB |
bool send_bind (
const char* dst_xrl_target_name,
const string& address,
const uint32_t& port,
const BindCB& cb
)
| send_bind |
Send Xrl intended to:
Bind the port but don't perform the listen or accept.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
address | local address. |
port | local port number. |
typedef XorpCallback1<void, const XrlError&>::RefPtr SendCB | SendCB |
bool send_send (
const char* dst_xrl_target_name,
const vector<uint8_t>& data,
const SendCB& cb
)
| send_send |
Send Xrl intended to:
Send data Send data to the peer.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
typedef XorpCallback1<void, const XrlError&>::RefPtr DisconnectCB | DisconnectCB |
bool send_disconnect (
const char* dst_xrl_target_name,
const DisconnectCB& cb
)
| send_disconnect |
Send Xrl intended to:
Disconnect from the peer.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
typedef XorpCallback1<void, const XrlError&>::RefPtr ResetCB | ResetCB |
bool send_reset (
const char* dst_xrl_target_name,
const ResetCB& cb
)
| send_reset |
Send Xrl intended to:
Reset the peer. Take it back to a known state.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
typedef XorpCallback1<void, const XrlError&>::RefPtr TerminateCB | TerminateCB |
bool send_terminate (
const char* dst_xrl_target_name,
const TerminateCB& cb
)
| send_terminate |
Send Xrl intended to:
Terminate the test peer process.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
XrlSender* _sender | _sender |
[protected]