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 Queueing public header */
25 #define HH_Queueing_ 1
29 //#include "Queueing.mpp"
30 ///////////////////////////////hh.p////////////////////////////////////////
35 /** \brief Queueing discipline base class
37 QueueingDescipline derived classes define the generation of throttling notifications. The
38 QueueingDiscipline is called whenever the packets are entered or removed from the queue. The
39 queueing discipline then determines the new throttling state of the queue.
41 \note The QueueingDiscipline will \e never drop packets explicitly. This is left to the
42 operating system by sending throttling events. The PPI will never loose a packet internally
43 (if not a module explicitly does so), however it may disable reception of new incoming
44 packets which will then probably be dropped by the operating system.
46 class QueueingDiscipline
49 enum Event { ENQUEUE, DEQUEUE }; ///< Possible queueing events
50 enum State { THROTTLED, UNTHROTTLED }; ///< Possible queueing states
52 State update(PassiveInput & input, Event event) = 0; ///< Calculate new queueing state
53 /**< Whenever the queue is manipulated, this member is
54 called to calculate the new throttling state.
56 \param[in] input Connector holding the queue
57 \param[in] event Type of event triggering the upate
58 \returns new throttling state */
63 ///////////////////////////////hh.e////////////////////////////////////////
64 //#include "Queueing.cci"
65 //#include "Queueing.ct"
66 //#include "Queueing.cti"
73 // c-file-style: "senf"
74 // indent-tabs-mode: nil
75 // ispell-local-dictionary: "american"