SinkApp

Package: inet.applications.common

SinkApp

compound module

Implements a generic sink application.

sink : like IPassivePacketSink

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

IPassivePacketSink: Interface for passive packet sink modules.

Source:
sink: <default("PassivePacketSink")> like IPassivePacketSink {
    @display("p=150,150");
}

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
application
display i=block/app

Gates

Name Direction Size Description
socketIn input
socketOut output

Source code

//
// Implements a generic sink application.
//
module SinkApp like IApp
{
    parameters:
        @application;
        @display("i=block/app");
    gates:
        input socketIn;
        output socketOut;
    submodules:
        sink: <default("PassivePacketSink")> like IPassivePacketSink {
            @display("p=150,150");
        }
    connections allowunconnected:
        socketIn --> sink.in;
}

File: src/inet/applications/common/SinkApp.ned