Compound Module P2pnsModules

File: Tier2/P2pns/P2pns.ned

Implementation of the P2PNS: A distributed name service for P2PSIP

Author: Ingmar Baumgart

p2pns: P2pns p2pnsCache: P2pnsCache

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.

Contains the following modules:

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

P2pns

The main module of the P2PNS implementation

P2pnsCache

The name cache module of the P2PNS implementation

Parameters:

Name Type Description
debugOutput bool

enable debug output

Gates:

Name Direction Description
from_udp input

gate from the UDP layer

from_lowerTier input

gate from the lower tier

from_upperTier input

gate from the upper tier

to_udp output

gate to the UDP layer

to_lowerTier output

gate to the lower tier

to_upperTier output

gate to the upper tier

Unassigned submodule parameters:

Name Type Description
p2pns.twoStageResolution bool

enable two stage name resolution (KBR/DHT)

Source code:

module P2pnsModules
    parameters:
        debugOutput : bool;    // enable debug output
    
    gates:
        in: from_udp;    // gate from the UDP layer
        in: from_lowerTier;    // gate from the lower tier
        in: from_upperTier;    // gate from the upper tier
        out: to_udp;    // gate to the UDP layer
        out: to_lowerTier;    // gate to the lower tier
        out: to_upperTier;    // gate to the upper tier

    submodules:
        p2pns: P2pns;
            parameters:
                debugOutput = debugOutput;    // enable debug output
            display: "i=block/app";
        p2pnsCache: P2pnsCache;
            display: "i=block/table";


    connections nocheck:
        from_lowerTier --> p2pns.from_lowerTier;
        to_lowerTier <-- p2pns.to_lowerTier;
        from_upperTier --> p2pns.from_upperTier;
        to_upperTier <-- p2pns.to_upperTier;
 
endmodule