Simple Module UDPEchoApp

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

C++ definition: click here

Similar to UDPBasicApp, but it sends back the packet after reception.

UDPEchoApp

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Parameters:

Name Type Default value Description
localPort int
destPort int
messageLength int

length of messages to generate, int bytes

messageFreq double

should usually be a random value, e.g. exponential(1)

destAddresses string ""

list of IP addresses, separated by spaces

Gates:

Name Direction Size Description
udpIn input
udpOut output

Source code:

//
// Similar to UDPBasicApp, but it sends back the packet after reception.
//
simple UDPEchoApp like UDPApp
{
    parameters:
        int localPort;
        int destPort;
        int messageLength @unit("B"); // length of messages to generate, int bytes
        volatile double messageFreq @unit("s"); // should usually be a random value, e.g. exponential(1)
        string destAddresses = default(""); // list of \IP addresses, separated by spaces
    gates:
        input udpIn;
        output udpOut;
}