SendToPort¶
Package: inet.protocolelement.selectivity
simple module SendToPort
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.
Usage diagram¶
Inheritance diagram¶
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
(no description) |
Extends¶
Name |
Type |
Description |
|---|---|---|
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;
}