Simple Module UDPSink

Package: inet.applications.udpapp
File: src/applications/udpapp/UDPSink.ned

C++ definition

Consumes and prints packets received from the UDP module.

UDPSink

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.

Parameters:

Name Type Default value Description
localPort int

if -1, app doesn't bind in UDP

Properties:

Name Value Description
display i=block/sink

Gates:

Name Direction Size Description
udpIn input
udpOut output

Source code:

//
// Consumes and prints packets received from the UDP module.
//
simple UDPSink like UDPApp
{
    parameters:
        int localPort; // if -1, app doesn't bind in UDP
        @display("i=block/sink");
    gates:
        input udpIn @labels(UDPControlInfo/up);
        output udpOut @labels(UDPControlInfo/down);
}