PacketSendToPush

Package: inet.queueing.common

simple module PacketSendToPush

Adapter module that converts packet sending to packet pushing. When it receives a packet as a message through its input gate, it pushes the packet to the connected consumer module through its output gate. Serves as a bridge between different packet handling mechanisms in protocol stacks and packet processing pipelines.

inet.queueing.common.PacketSendToPushPacketSendToPushsimple

Inheritance diagram

Extends

Name

Type

Description

PacketProcessorBase

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

Properties

Name

Value

Description

class

PacketSendToPush

display

i=block/cogwheel

Gates

Name

Direction

Size

Description

in

input

out

output

Source code

//
// Adapter module that converts packet sending to packet pushing. When it
// receives a packet as a message through its input gate, it pushes the packet
// to the connected consumer module through its output gate. Serves as a bridge
// between different packet handling mechanisms in protocol stacks and packet
// processing pipelines.
//
simple PacketSendToPush extends PacketProcessorBase like IActivePacketSource
{
    parameters:
        @class(PacketSendToPush);
        @display("i=block/cogwheel");
    gates:
        input in @labels(push);
        output out @labels(push);
}

File: src/inet/queueing/common/PacketSendToPush.ned