XrlCmdMap* _cmds | _cmds |
[protected]
XrlTestSocket6TargetBase (XrlCmdMap* cmds = 0)
| XrlTestSocket6TargetBase |
Constructor.
Parameters:
cmds | an XrlCmdMap that the commands associated with the target should be added to. This is typically the XrlRouter associated with the target. |
~XrlTestSocket6TargetBase ()
| ~XrlTestSocket6TargetBase |
[virtual]
Destructor.
Dissociates instance commands from command map.
bool set_command_map (XrlCmdMap* cmds)
| set_command_map |
Set command map.
Parameters:
cmds | pointer to command map to associate commands with. This argument is typically a pointer to the XrlRouter associated with the target. |
Returns: true on success, false if cmds is null or a command map has already been supplied.
const string& name ()
| name |
[const]
Get Xrl instance name associated with command map.
const char* version ()
| version |
[const]
Get version string of instance.
XrlCmdError common_0_1_get_target_name (
string& name)
| common_0_1_get_target_name |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError common_0_1_get_version (
string& version)
| common_0_1_get_version |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Get version string from Xrl Target
XrlCmdError common_0_1_get_status (
uint32_t& status,
string& reason)
| common_0_1_get_status |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
XrlCmdError common_0_1_shutdown ()
| common_0_1_shutdown |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Request clean shutdown of Xrl Target
XrlCmdError socket6_user_0_1_recv_event (
const string& sockid,
const string& if_name,
const string& vif_name,
const IPv6& src_host,
const uint32_t& src_port,
const vector<uint8_t>& data)
| socket6_user_0_1_recv_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/0.1 when a packet arrives from an IPv6 source.
Parameters:
sockid | the identifier associated with socket where the event occurred. |
if_name | the interface name the packet arrived on, if known. If unknown, then it is an empty string. |
vif_name | the vif name the packet arrived on, if known. If unknown, then it is an empty string. |
src_host | the originating host. |
src_port | the originating IP port. |
data | the data received. |
XrlCmdError socket6_user_0_1_inbound_connect_event (
const string& sockid,
const IPv6& src_host,
const uint32_t& src_port,
const string& new_sockid,
bool& accept)
| socket6_user_0_1_inbound_connect_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/0.1 when a connection request is received from an IPv6 source. It applies only to TCP sockets.
Parameters:
sockid | the identifier associated with socket where the event occurred. |
src_host | the connecting host. |
src_port | the connecting IP port. |
new_sockid | the identifier associated with the new socket that has been created to handle the new connection. |
accept | if true, the connection request has been accepted, otherwise it has been rejected. |
XrlCmdError socket6_user_0_1_outgoing_connect_event (
const string& sockid)
| socket6_user_0_1_outgoing_connect_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/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:
sockid | the identifier associated with socket where the event occurred. |
XrlCmdError socket6_user_0_1_error_event (
const string& sockid,
const string& error,
const bool& fatal)
| socket6_user_0_1_error_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/0.1 when an error occurs.
Parameters:
sockid | the identifier associated with socket where the event occurred. |
error | a textual description of the error. |
fatal | indication of whether socket is shutdown because of error. |
XrlCmdError socket6_user_0_1_disconnect_event (
const string& sockid)
| socket6_user_0_1_disconnect_event |
[protected pure virtual]
Pure-virtual function that needs to be implemented to:
Method invoked by target implementing socket6/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:
sockid | the identifier associated with socket where the event occurred. |