2 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
3 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
4 // Stefan Bund <g0dil@berlios.de>
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the
18 // Free Software Foundation, Inc.,
19 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 \brief PassiveQueue public header */
24 #ifndef HH_PassiveQueue_
25 #define HH_PassiveQueue_ 1
28 #include "Connectors.hh"
32 //#include "PassiveQueue.mpp"
33 ///////////////////////////////hh.p////////////////////////////////////////
39 /** \brief Adaptor to connect active a pair of active connectors.
41 This adaptor queue is used to connect two active connectors to each other. The queue
42 receives data in it's passive input and places them in it's queue. Whenever data is
43 requested from the passive output, a packet is dequeued.
45 The PassiveQueue will automatically throttle in both directions. Throttling on the input
46 connector is the standard throttling as implemented in connector::PassiveInput. Additional,
47 forward throttling notifications are sent out whenever the queue is empty.
49 \ingroup adapter_modules
52 : public module::Module
54 SENF_PPI_MODULE(PassiveQueue);
56 connector::PassiveInput input;
57 connector::PassiveOutput output;
61 template <class QDiscipline>
62 void qdisc(QDiscipline const & disc); ///< Change the queueing discipline
63 /**< This call changes the queueing discipline of the
64 queue. This call is just forwarded to the \a input
67 \see connector::PassiveInput::qdisc() */
78 ///////////////////////////////hh.e////////////////////////////////////////
79 #include "PassiveQueue.cci"
80 //#include "PassiveQueue.ct"
81 #include "PassiveQueue.cti"
88 // c-file-style: "senf"
89 // indent-tabs-mode: nil
90 // ispell-local-dictionary: "american"
91 // compile-command: "scons -u test"