ClientApp

Package: inet.tutorials.protocol

ClientApp

compound module

(no description)

source : like IActivePacketSource

ActivePacketSource: An active packet source which pushes packets into the connected module.

IActivePacketSource: Interface for active packet source modules.

Source:
source: <default("ActivePacketSource")> like IActivePacketSource {
    @display("p=150,100");
} sendToPort : SendToPort

Adds a destination port header to packets.

Source:
sendToPort: SendToPort {
    @display("p=150,200");
} sendToL3Address : SendToL3Address

Source:
sendToL3Address: SendToL3Address {
    @display("p=150,300");
}

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Properties

Name Value Description
display i=block/app

Gates

Name Direction Size Description
in input
out output

Unassigned submodule parameters

Name Type Default value Description
sendToPort.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

sendToPort.port int
sendToL3Address.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

sendToL3Address.address string

Source code

module ClientApp like IApp
{
    parameters:
        @display("i=block/app");
    gates:
        input in;
        output out;
    submodules:
        source: <default("ActivePacketSource")> like IActivePacketSource {
            @display("p=150,100");
        }
        sendToPort: SendToPort {
            @display("p=150,200");
        }
        sendToL3Address: SendToL3Address {
            @display("p=150,300");
        }
    connections allowunconnected:
        source.out --> sendToPort.in;
        sendToPort.out --> sendToL3Address.in;
        sendToL3Address.out --> { @display("m=s"); } --> out;
}

File: tutorials/protocol/Network91.ned