X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FPassiveQueue.hh;h=dd851aa366e972a3d9efd3e4458eb50c6d56023d;hb=05fab45b5f96c457d3c6b359f66ce1506c6ad510;hp=64ed349c85eddae486eee62c2e831c212acdeb47;hpb=0c6e42841266e5983ef9a9836b8f1bb98de684ba;p=senf.git diff --git a/PPI/PassiveQueue.hh b/PPI/PassiveQueue.hh index 64ed349..dd851aa 100644 --- a/PPI/PassiveQueue.hh +++ b/PPI/PassiveQueue.hh @@ -25,6 +25,9 @@ #define HH_PassiveQueue_ 1 // Custom includes +#include "Connectors.hh" +#include "Module.hh" +#include "predecl.hh" //#include "PassiveQueue.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -42,28 +45,40 @@ namespace module { 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. + + \ingroup adapter_modules */ class PassiveQueue + : public module::Module { + SENF_PPI_MODULE(PassiveQueue); public: connector::PassiveInput input; connector::PassiveOutput output; PassiveQueue(); - void qdisc(QueueingDiscipline const & disc); ///< Change the queueing discipline - /**< This call changs the queueing discipline of the queue. This call is just forwarded to - the \a input connector. - - \see connector::PassiveInput::qdisc() */ + template + void qdisc(QDiscipline 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() */ + + private: + void init(); + + void onInput(); + void onOutput(); }; }}} ///////////////////////////////hh.e//////////////////////////////////////// -//#include "PassiveQueue.cci" +#include "PassiveQueue.cci" //#include "PassiveQueue.ct" -//#include "PassiveQueue.cti" +#include "PassiveQueue.cti" #endif @@ -73,4 +88,6 @@ namespace module { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: