FullPacketSink

Package: inet.queueing.sink

simple module FullPacketSink

An active/passive full packet sink. It doesn’t pull packets from the connected module, and it doesn’t allow packets to be pushed by the connected module. The input gate generates backpressure for push packet operations.

inet.queueing.sink.FullPacketSinkFullPacketSinksimple

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

FullPacketSink

display

i=block/sink

Gates

Name

Direction

Size

Description

in

input

Source code

//
// An active/passive full packet sink. It doesn't pull packets
// from the connected module, and it doesn't allow packets to be pushed by
// the connected module. The input gate generates backpressure for push packet
// operations.
//
simple FullPacketSink extends PacketProcessorBase like IPacketSink, IActivePacketSink, IPassivePacketSink
{
    parameters:
        @class(FullPacketSink);
        @display("i=block/sink");
    gates:
        input in @labels(push,pull);
}

File: src/inet/queueing/sink/FullPacketSink.ned