class XrlTestSocket6TargetBase


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Methods

Protected Members


Detailed Description

XrlCmdMap* _cmds

_cmds

[protected]

 XrlTestSocket6TargetBase (XrlCmdMap* cmds = 0)

XrlTestSocket6TargetBase

Constructor.

Parameters:

cmdsan 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:

cmdspointer 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:

Get name of Xrl Target

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:

Get status of Xrl Target

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:

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.
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:

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.
acceptif 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:

sockidthe 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:

sockidthe identifier associated with socket where the event occurred.
errora textual description of the error.
fatalindication 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:

sockidthe identifier associated with socket where the event occurred.

Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:45 2008, using kdoc 2.0a54+XORP.