Package: inet.protocolelement.common
PacketStreamer
simple moduleThis module takes packets passed to its input and streams them to its output.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Known subclasses
Name | Type | Description |
---|---|---|
CutthroughSink | simple module | (no description) |
EthernetCutthroughSink | simple module | (no description) |
Extends
Name | Type | Description |
---|---|---|
PacketProcessorBase | simple module |
This is a base module for various packet processing modules which maintains a few statistics. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
clockModule | string | "" |
relative path of a module that implements IClock; optional |
datarate | double | nan bps |
Properties
Name | Value | Description |
---|---|---|
display | i=block/cogwheel | |
class | PacketStreamer |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Direct method calls (observed)
call to | function | info |
---|---|---|
PacketEmitter | inet::PacketEmitter::handleCanPullPacketChanged | handleCanPullPacketChanged |
DropTailQueue | inet::queueing::PacketQueue::pullPacket | pullPacket |
Called methods (observed)
function | info | call from |
---|---|---|
inet::PacketStreamer::handleCanPullPacketChanged | handleCanPullPacketChanged | DropTailQueue |
inet::PacketStreamer::pullPacketEnd | pullPacketEnd | PacketEmitter |
inet::PacketStreamer::pullPacketStart | pullPacketStart | PacketEmitter |
Pull in messages (observed)
gate | msg | kind | ctrl | srcModule | tags |
---|---|---|---|---|---|
in | Packet | 0 | DropTailQueue | DirectionTag, DispatchProtocolInd, EncapsulationProtocolReq, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, PacketProtocolTag, TransportProtocolInd, VlanReq |
Pulled out messages (observed)
gate | msg | kind | ctrl | destModule | tags |
---|---|---|---|---|---|
out | Packet | 0 | PacketEmitter | DirectionTag, DispatchProtocolInd, EncapsulationProtocolReq, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, PacketProtocolTag, TransportProtocolInd, VlanReq |
Source code
// This module takes packets passed to its input and streams them to its output. // simple PacketStreamer extends PacketProcessorBase like IPacketFlow { parameters: string clockModule = default(""); // relative path of a module that implements IClock; optional double datarate @unit(bps) = default(nan bps); @class(PacketStreamer); @display("i=block/cogwheel"); gates: input in @labels(send,push,pull,pass); output out @labels(send,push,pull,stream); }File: src/inet/protocolelement/common/PacketStreamer.ned