PacketSendToPush

Package: inet.queueing.common

PacketSendToPush

simple module

C++ definition

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.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the 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 %p pk (%l)"

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