Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (C) 2007
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
\brief PassiveQueue public header */
#ifndef HH_PassiveQueue_
#define HH_PassiveQueue_ 1
// Custom includes
//#include "PassiveQueue.mpp"
///////////////////////////////hh.p////////////////////////////////////////
namespace senf {
namespace ppi {
namespace module {
/** \brief Adaptor to connect active a pair of active connectors.
This adaptor queue is used to connect two active connectors to each other. The queue
receives data in it's passive input and places them in it's queue. Whenever data is
requested from the passive output, a packet is dequeued.
The PassiveQueue will automatically throttle in both directions. Throttling on the input
connector is the standard throttling as implemented in connector::PassiveInput. Additional,
forward throttling notifications are sent out whenever the queue is empty.
*/
class PassiveQueue
{
public:
connector::PassiveInput input;
connector::PassiveOutput output;
PassiveQueue();
void qdisc(QueueingDiscipline const & disc); ///< Change the queueing discipline
/**< This call changes the queueing discipline of the queue. This call is just forwarded to
the \a input connector.
\see connector::PassiveInput::qdisc() */
};
}}}
///////////////////////////////hh.e////////////////////////////////////////
//#include "PassiveQueue.cci"
//#include "PassiveQueue.ct"
//#include "PassiveQueue.cti"
#endif
// Local Variables:
// mode: c++
// fill-column: 100
// c-file-style: "senf"
// indent-tabs-mode: nil
// ispell-local-dictionary: "american"
// compile-command: "scons -u test"