File: Applications/UDPApp/UDPBasicApp.ned
C++ definition: click here
Sends UDP packets to the given IP address at the given interval. Compatible with both IPv4 and IPv6.
The interval can be a constant or a random value (e.g. exponential(1)). If the dest_addresses parameter contains more than one address, one of them is randomly chosen for each packet. An address may be given in the dotted decimal notation, or with the module name. (The IPAddressResolver class is used to resolve the address.) To disable the model, set dest_addresses to "".
The peer can be UDPSink or another UDPBasicApp (it handles received packets exactly like UDPSink).
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.
Name | Type | Description |
---|---|---|
local_port | numeric const | if -1, app doesn't bind in UDP |
dest_port | numeric const | |
message_length | numeric const | (bits) |
message_freq | numeric | should usually be a random value, e.g. exponential(1) |
dest_addresses | string | list of IP addresses, separated by spaces |
Name | Direction | Description |
---|---|---|
from_udp | input | |
to_udp | output |
simple UDPBasicApp parameters: local_port : numeric const, // if -1, app doesn't bind in UDP dest_port : numeric const, message_length : numeric const, // (bits) message_freq : numeric, // should usually be a random value, e.g. exponential(1) dest_addresses: string; // list of \IP addresses, separated by spaces gates: in: from_udp; out: to_udp; endsimple