senf::ppi::ThresholdQueueing Class Reference

Simple queueing discipline with high and low threshold. More...

#include <senf/PPI/Queueing.hh>

Inheritance diagram for senf::ppi::ThresholdQueueing:
Inheritance graph
[legend]

List of all members.


Detailed Description

Simple queueing discipline with high and low threshold.

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.

Constructor & Destructor Documentation

senf::ppi::ThresholdQueueing::
ThresholdQueueing ( unsigned  high,
unsigned  low )

Definition at line 40 of file Queueing.cci.


Member Function Documentation

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.

Parameters:
[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.


The documentation for this class was generated from the following files: