File: contrib/applLayer/PollApplLayer.ned
C++ definition: click here
Application layer to test centralized scenarios
Application layer for a base station in a centralized WLAN-like network Every 'broadcastInterval' it broadcasts a ping message to determine the reachable clients. Afterwards it polls all reachable clients in a round-robin manner, where 'pollTimeout' is the reply timeout for the clients
@sa ClientApplLayer
Author: Daniel Willkomm
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.
If a module type shows up more than once, that means it has been defined in more than one NED file.
BaseStationHost | The BaseStationHost is a compound module that implements a test base station. The test base station contains the PollApplLayer which periodically polls all clients in the network. |
Name | Type | Description |
---|---|---|
debug | bool | debug switch |
numClients | numeric const | number of clients in the network |
headerLength | numeric const | length of the application message header (in bits) |
pollTimeout | numeric const | timeout for poll messages |
broadcastInterval | numeric const | time between bradcast messages in seconds |
Name | Direction | Description |
---|---|---|
lowergateIn | input | from network layer |
lowerControlIn | input | |
lowergateOut | output | to network layer |
simple PollApplLayer parameters: debug : bool, // debug switch numClients: numeric const, // number of clients in the network headerLength: numeric const, // length of the application message header (in bits) pollTimeout: numeric const, //timeout for poll messages broadcastInterval: numeric const; // time between bradcast messages in seconds gates: in: lowergateIn, // from network layer lowerControlIn; out: lowergateOut; // to network layer endsimple