Simple Module EtherAppSrv

Package: inet.applications.ethernet
File: src/applications/ethernet/EtherAppSrv.ned

C++ definition

Server side of the EtherCli model -- generates EtherAppResp packets with the number of bytes requested by the client in EtherAppReq. It should be connected directly to EtherLLC or a Ieee802NicXXX module.

EtherAppSrv

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Used in compound modules:

Name Type Description
EtherHost compound module

An example host with one Ethernet port and traffic generators that generate Ethernet traffic directly. This host model does not contain higher layer protocols (IP, TCP).

EtherHost2 compound module

Example host model with one Ethernet port and several traffic generators to create traffic in the test network.

Parameters:

Name Type Default value Description
registerSAP bool

whether to sent IEEE802CTRL_REGISTER_DSAP on startup

Properties:

Name Value Description
display i=block/app

Gates:

Name Direction Size Description
in input
out output

Source code:

//
// Server side of the EtherCli model -- generates EtherAppResp packets
// with the number of bytes requested by the client in EtherAppReq.
// It should be connected directly to EtherLLC or a Ieee802NicXXX module.
//
simple EtherAppSrv
{
    parameters:
        bool registerSAP; // whether to sent IEEE802CTRL_REGISTER_DSAP on startup
        @display("i=block/app");
    gates:
        input in @labels(Ieee802Ctrl/up);
        output out @labels(Ieee802Ctrl/down);
}