#include <senf/PPI/Queueing.hh>
The ThresholdQueueing QueueingDiscipline is a simple queueing discipline which throttles the input as soon the number of packets in the queue reaches the high threshold. The input will be unthrottled when the number of packets drops to the low threshold.
The default queueing discipline is ThresholdQueueing(1,0).
Definition at line 82 of file Queueing.hh.
Public Member Functions |
|
ThresholdQueueing (unsigned high, unsigned low) | |
virtual void | update (connector::GenericPassiveInput &input, Event event) |
Calculate new queueing state. |
senf::ppi::ThresholdQueueing:: | ||||
ThresholdQueueing | ( | unsigned | high, | |
unsigned | low | ) | ||
Definition at line 40 of file Queueing.cci.
void senf::ppi::ThresholdQueueing:: | ||||
update | ( | connector::GenericPassiveInput & | input, | |
Event | event | ) | ||
Calculate new queueing state.
Whenever the queue is manipulated, this member is called to calculate the new throttling state. The member must call input's throttle()
or unthrottle()
member to set the new throttling state.
[in] | input | Connector holding the queue |
[in] | event | Type of event triggering the update |
Implements senf::ppi::QueueingDiscipline.
Definition at line 39 of file Queueing.cc.