PacketDestreamer¶
Package: inet.protocolelement.common
simple module PacketDestreamer
Takes packets streamed to its input and passes them to its output.
Inheritance diagram¶
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
simple module |
(no description) |
|
simple module |
(no description) |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Base module for various packet processing modules which maintains a few statistics. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“processed {numProcessedPackets} pk ({processedTotalLength})” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
datarate |
double |
nan bps |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
PacketDestreamer |
|
display |
i=block/cogwheel |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
in |
input |
||
out |
output |
Source code¶
//
// Takes packets streamed to its input and passes them to its output.
//
simple PacketDestreamer extends PacketProcessorBase like IPacketFlow
{
parameters:
double datarate @unit(bps) = default(nan bps);
@class(PacketDestreamer);
@display("i=block/cogwheel");
gates:
input in @labels(send,push,pull,stream);
output out @labels(send,push,pull,pass);
}