NED File src/Forwarder/Forwarder.ned

Name Description
Forwarder (simple module)

The Publish Subscribe Forwarder

Source code:

//
// Copyright (C) 2011 Nikolaos Vastardis; University of Essex, Colchester
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//

package pubsub_sim.Forwarder;

//
// <b> The Publish Subscribe Forwarder </b>
//
// Implements the Publish-Subscribe Forwarder. The protocol header is represented
// by the PSEtherApp message class.
//
// <i>Interfacing with other layer protocols</i>
//
// There is no interaction with higher layers. Everything for the Forwarded is
// quite flat. All the links, even for higher layer protocols are identified by
// an LID. If the received message's FID matches this LID, then the message will
// be forwarded through that link.  
//
// @see FwTable, PSEtherAppMsg
//
// @author Nikolaos Vastardis
//
simple Forwarder
{
    parameters:
        double procDelay @unit("s") = default(0s);
        @display("i=block/fork");
    gates:
        input ifIn[];
        output ifOut[];
        //input queueIn[] @labels(IPDatagram);
        //output queueOut @labels(IPDatagram);
}