class ProtoRegister

Base class for protocol registration. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

int  add_protocol (const string& module_instance_name, xorp_module_id module_id)

add_protocol

Add/register a protocol instance.

Parameters:

module_instance_namethe module instance name of the protocol to add/register.
module_idthe module ID (xorp_module_id) of the protocol to add/register.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  delete_protocol (const string& module_instance_name, xorp_module_id module_id)

delete_protocol

Delete/deregister a protocol instance.

Parameters:

module_instance_namethe module instance name of the protocol to delete/deregister.
module_idthe module ID (xorp_module_id) of the protocol to delete/deregister.

Returns: XORP_OK on success, otherwise XORP_ERROR.

bool  is_registered (xorp_module_id module_id)

is_registered

[const]

Test if any instance of a given protocol is registered.

Parameters:

module_idthe module ID (xorp_module_id) of the protocol to test.

Returns: true if any instance of the given protocol is registered, otherwise false.

bool  is_registered (const string& module_instance_name, xorp_module_id module_id)

is_registered

[const]

Test if a protocol module instance is registered.

Parameters:

module_instance_namethe module instance name of the protocol to test.
module_idthe module ID (xorp_module_id) of the protocol to test.

Returns: true if the module is registered, otherwise false.

const list<string>&  module_instance_name_list (xorp_module_id module_id)

module_instance_name_list

[const]

Get the list of all registered protocol instances for a given protocol.

Parameters:

module_idthe module ID (xorp_module_id) of the protocol.

Returns: the list of all registered protocol instances for the given protocol.

const list<pair<string, xorp_module_id> >&  all_module_instance_name_list ()

all_module_instance_name_list

[const]


Generated by: pavlin on possum.icir.org on Thu Mar 9 04:42:31 2006, using kdoc $.