Router Module


This module defines the following types:

IPrincipalAddress Type

Empty interface to be used by any type that is used to represent a principal address/location. It can be a URL, a name, etc.
 

IRoutingTable Type

Interface implemented by routing tables. A routing table knows the name of the current principal and his/her address. It also knows how to locate any other principal.

Methods

Modifiers Return type Method name Method parameters Description
bool HasPrincipal string Returns true only if the given principal name is known
bool AddPrincipal string, IPrincipalAddress Adds the given principal and address to the routing table
IPrincipalAddress PrincipalAddress string Returns the principal address of the given known principal

Properties

Return type Property name Description
string Me Name of the current principal
IPrincipalAddress MyAddress Address of the current princiapl
string list Principals List of all kwown principals names

 

Automatically generated on 6/10/2011 2:28:40 PM
 

Last edited Jun 10, 2011 at 10:36 PM by gdecaso, version 2

Comments

No comments yet.