Simple Module FileTransferAppl

File: src/tcpipmodel/FileTransferAppl.ned

Application layer; demonstrates how the socket interface can be used to talk to BSDStack.

The "dest" parameter (which is a string) specifies connections and traffic to be generated. The syntax:

CONNECT <StartTime> <NumPackets> <PacketSize> <DestinationIP> <DestinationPort>

LISTEN <AcceptTime> <NumPackets> <PacketSize> <ListenPort>

The parameter may contain several of such statements concatenated.

Examples:

**.dest="CONNECT 2 100 1000 192.166.0.2 2000 "
**.dest="LISTEN 1.5 1 1000 2000 "

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.

FileTransferAppl BSDHost

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

BSDHost

Represents a host with a BSD network stack.

Parameters:

Name Type Description
dest string

specifies connections and traffic (see above)

Gates:

Name Direction Description
out output
in input

Source code:

simple FileTransferAppl
    parameters:
        dest : string; // specifies connections and traffic (see above)
    gates:
        out: out;
        in: in;
endsimple