Sink

Package: inet.common.queue

Sink

simple module

Silently discards all received packets.

Sink

Used in compound modules

Name Type Description
DiffservQueue compound module

This is an example queue, that can be used in interfaces of DS core and edge nodes to support the AFxy (RFC 2597) and EF (RFC 3246) PHBs.

Properties

Name Value Description
display i=block/sink

Gates

Name Direction Size Description
in [ ] input

Signals

Name Type Unit
packetReceived cPacket

Statistics

Name Title Source Record Unit Interpolation Mode
packetReceived packets received packetReceived count, sum(packetBytes), vector(packetBytes) none

Source code

//
// Silently discards all received packets.
//
simple Sink
{
    parameters:
        @display("i=block/sink");
        @signal[packetReceived](type=cPacket);
        @statistic[packetReceived](title="packets received"; source=packetReceived; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none);
    gates:
        input in[];
}

File: src/inet/common/queue/Sink.ned