SendToPort
Package: inet.protocolelement.selectivity
SendToPort
simple moduleAdds a destination port header to packets. The header contains the configured destination port and is used by the corresponding ReceiveAtPort module to filter packets.
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 |
|---|---|---|
| ClientApp | compound module | (no description) |
| SelectivityService | compound module | (no description) |
Extends
| Name | Type | Description |
|---|---|---|
| SimpleModule | simple module |
Base module for all INET simple modules. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| port | int |
Properties
| Name | Value | Description |
|---|---|---|
| class | SendToPort | |
| display | i=block/tx |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Source code
// // Adds a destination port header to packets. The header contains the configured // destination port and is used by the corresponding ReceiveAtPort module to // filter packets. // simple SendToPort extends SimpleModule { parameters: @class(SendToPort); int port; @display("i=block/tx"); gates: input in; output out; }File: src/inet/protocolelement/selectivity/SendToPort.ned