4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 // Stefan Bund <g0dil@berlios.de>
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 \brief PassiveQueue public header */
26 #ifndef HH_SENF_PPI_PassiveQueue_
27 #define HH_SENF_PPI_PassiveQueue_ 1
30 #include "Connectors.hh"
34 //#include "PassiveQueue.mpp"
35 ///////////////////////////////hh.p////////////////////////////////////////
41 /** \brief Adaptor to connect active a pair of active connectors.
43 This adaptor queue is used to connect two active connectors to each other. The queue
44 receives data in it's passive input and places them in it's queue. Whenever data is
45 requested from the passive output, a packet is dequeued.
47 The PassiveQueue will automatically throttle in both directions. Throttling on the input
48 connector is the standard throttling as implemented in
49 connector::PassiveInput<>. Additional forward throttling notifications are sent out
50 whenever the queue is empty.
52 \ingroup adapter_modules
55 : public module::Module
57 SENF_PPI_MODULE(PassiveQueue);
59 connector::PassiveInput<> input;
60 connector::PassiveOutput<> output;
64 template <class QDiscipline>
65 void qdisc(QDiscipline const & disc); ///< Change the queueing discipline
66 /**< This call changes the queueing discipline of the
67 queue. This call is just forwarded to the \a input
70 \see connector::GenericPassiveInput::qdisc() */
73 virtual void v_init();
81 ///////////////////////////////hh.e////////////////////////////////////////
82 #include "PassiveQueue.cci"
83 //#include "PassiveQueue.ct"
84 #include "PassiveQueue.cti"
91 // c-file-style: "senf"
92 // indent-tabs-mode: nil
93 // ispell-local-dictionary: "american"
94 // compile-command: "scons -u test"