class ProtoRegister

Base class for protocol registration. More...

Definition#include <proto_register.hh>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

int  add_protocol (const string& module_instance_name, x_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 (x_module_id) of the protocol to add/register.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  delete_protocol (const string& module_instance_name, x_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 (x_module_id) of the protocol to delete/deregister.

Returns: XORP_OK on success, otherwise XORP_ERROR.

bool  is_registered (x_module_id module_id)

is_registered

[const]

Test if any instance of a given protocol is registered.

Parameters:
module_idthe module ID (x_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, x_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 (x_module_id) of the protocol to test.

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

const list<string>&  module_instance_name_list (x_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 (x_module_id) of the protocol.

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


Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:44 2002, using kdoc 2.0a54+XORP.