Simple Module P2pns

File: Tier2/P2pns/P2pns.ned

C++ definition: click here

The main module of the P2PNS implementation

Author: Ingmar Baumgart

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

P2pnsModules

Implementation of "P2PNS: A distributed name service for P2PSIP"

Parameters:

Name Type Description
debugOutput bool

enable debug output

twoStageResolution bool

enable two stage name resolution (KBR/DHT)

Gates:

Name Direction Description
from_lowerTier input

gate from the lower tier

from_upperTier input

gate from the upper tier

direct_in input

gate for sendDirect

trace_in input

gate for trace file commands

to_lowerTier output

gate to the lower tier

to_upperTier output

gate to the upper tier

Source code:

simple P2pns
    parameters:
        debugOutput : bool,    // enable debug output
        twoStageResolution: bool; // enable two stage name resolution (KBR/DHT)
    
    gates:
        in: from_lowerTier;    // gate from the lower tier
        in: from_upperTier;    // gate from the upper tier
        in: direct_in;    // gate for sendDirect
        in: trace_in;    // gate for trace file commands
        out: to_lowerTier;    // gate to the lower tier
        out: to_upperTier;    // gate to the upper tier
        
endsimple