Simple Module TCPSinkApp

File: Applications/TCPApp/TCPSinkApp.ned

C++ definition: click here

Accepts any number of incoming TCP connections, and discards whatever arrives on them. Compatible with both IPv4 and IPv6.

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

TCPSinkApp

Parameters:

Name Type Description
address string

may be left empty ("")

port numeric const

port number to listen on

Gates:

Name Direction Description
tcpIn input
tcpOut output

Source code:

simple TCPSinkApp
    parameters:
        address: string, // may be left empty ("")
        port: numeric const; // port number to listen on
    gates:
        in: tcpIn;
        out: tcpOut;
endsimple