ServerHost2

Package: inet.tutorials.protocol

ServerHost2

compound module

(no description)

app : PassivePacketSink

A passive packet sink which is pushed with packets by the connected packet producer.

Source:
app: PassivePacketSink {
    @display("p=150,100");
} receiver : PacketReceiver

Receives signals from the physical medium (wire) as a whole.

Source:
receiver: PacketReceiver {
    @display("p=150,200");
}

Usage diagram

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

Used in

Name Type Description
Network2 network (no description)

Properties

Name Value Description
display i=device/pc

Gates

Name Direction Size Description
in input

Unassigned submodule parameters

Name Type Default value Description
app.displayStringTextFormat string "received %p pk (%l)"

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

app.clockModule string ""

Relative path of a module that implements IClock(1,2); optional

app.initialConsumptionOffset double 0s

Initial duration before which packets are not consumed

app.consumptionInterval double 0s

Elapsed time between subsequent packets allowed to be pushed by the connected packet producer, 0 means any number of packets can be pushed at the same simulation time

app.scheduleForAbsoluteTime bool true

When a clock is used, "relative" means that setting the clock will not affect the simulation time of the event

receiver.displayStringTextFormat string "processed %p pk (%l)"

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

receiver.datarate double

Source code

module ServerHost2
{
    parameters:
        @display("i=device/pc");
    gates:
        input in;
    submodules:
        app: PassivePacketSink {
            @display("p=150,100");
        }
        receiver: PacketReceiver {
            @display("p=150,200");
        }
    connections:
        in --> receiver.in;
        receiver.out --> app.in;
}

File: tutorials/protocol/Network2.ned