PacketStreamer.ned

NED File src/inet/protocolelement/common/PacketStreamer.ned

Name Type Description
PacketStreamer simple module

This module takes packets passed to its input and streams them to its output.

Source code

//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//


package inet.protocolelement.common;

import inet.queueing.base.PacketProcessorBase;
import inet.queueing.contract.IPacketFlow;

// 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);
}