#include <senf/Ext/NetEmu/Modules/REDQueue.hh>

Public Types | |
| typedef std::pair< std::uint32_t, std::uint8_t > | limit_t |
Public Types inherited from senf::ppi::QueueingAlgorithm | |
| typedef std::unique_ptr< QueueingAlgorithm > | ptr |
Public Member Functions | |
| REDQueue (std::uint32_t _limit=16384, std::uint8_t lowThreshPrecentage=25) | |
| void | limit (std::uint32_t bytes, std::uint8_t lowThreshPrecentage=25) |
| limit_t | limit () const |
| std::uint32_t | dropped () const |
| void | incrDropped () |
| void | resetDropped () |
Public Member Functions inherited from senf::ppi::QueueingAlgorithm | |
| virtual | ~QueueingAlgorithm () |
| console::DirectoryNode & | consoleDir () |
| void | pop () |
| Packet const & | front () const |
| bool | enqueue (Packet const &packet, bool force=false) |
| unsigned | size () const |
| unsigned | peek (unsigned maxSize=0x7fffffff) const |
| void | clear () |
| bool | empty () const |
Static Public Member Functions | |
| static ppi::QueueingAlgorithm::ptr | create () |
Additional Inherited Members | |
Protected Member Functions inherited from senf::ppi::QueueingAlgorithm | |
| QueueingAlgorithm () | |
Definition at line 29 of file REDQueue.hh.
| typedef std::pair<std::uint32_t,std::uint8_t> senf::emu::REDQueue::limit_t |
Definition at line 36 of file REDQueue.hh.
| senf::emu::REDQueue::REDQueue | ( | std::uint32_t | _limit = 16384, |
| std::uint8_t | lowThreshPrecentage = 25 |
||
| ) |
Definition at line 33 of file REDQueue.cc.
|
static |
Definition at line 28 of file REDQueue.cc.
| boost::uint32_t senf::emu::REDQueue::dropped | ( | ) | const |
Definition at line 89 of file REDQueue.cc.
| void senf::emu::REDQueue::incrDropped | ( | ) |
| void senf::emu::REDQueue::limit | ( | std::uint32_t | bytes, |
| std::uint8_t | lowThreshPrecentage = 25 |
||
| ) |
| senf::emu::REDQueue::limit_t senf::emu::REDQueue::limit | ( | ) | const |
Definition at line 83 of file REDQueue.cc.
| void senf::emu::REDQueue::resetDropped | ( | ) |
Definition at line 95 of file REDQueue.cc.