EMANE
1.2.1
|
Flow Control Manager (token producer) side. More...
#include <flowcontrolmanager.h>
Public Member Functions | |
FlowControlManager (EMANE::DownstreamTransport &transport) | |
~FlowControlManager () | |
void | start (std::uint16_t u16TotalTokensAvailable) |
void | stop () |
std::pair< std::uint16_t, bool > | removeToken () |
std::pair< std::uint16_t, bool > | addToken (std::uint16_t u16Tokens=1) |
void | processFlowControlMessage (const Controls::FlowControlControlMessage *pMsg) |
Flow Control Manager (token producer) side.
Definition at line 47 of file flowcontrolmanager.h.
EMANE::FlowControlManager::FlowControlManager | ( | EMANE::DownstreamTransport & | transport | ) |
Creates an instance
transport | reference to the DownstremTransport |
Definition at line 183 of file flowcontrolmanager.cc.
EMANE::FlowControlManager::~FlowControlManager | ( | ) |
Destroys an instance
Definition at line 187 of file flowcontrolmanager.cc.
std::pair< std::uint16_t, bool > EMANE::FlowControlManager::addToken | ( | std::uint16_t | u16Tokens = 1 | ) |
Add one or more flow control token(s)
u16Tokens | number of tokens |
Definition at line 199 of file flowcontrolmanager.cc.
void EMANE::FlowControlManager::processFlowControlMessage | ( | const Controls::FlowControlControlMessage * | pMsg | ) |
Handles a flow control update message
pMsg | Flow control message |
Definition at line 209 of file flowcontrolmanager.cc.
std::pair< std::uint16_t, bool > EMANE::FlowControlManager::removeToken | ( | ) |
Removes a flow control token
Definition at line 204 of file flowcontrolmanager.cc.
void EMANE::FlowControlManager::start | ( | std::uint16_t | u16TotalTokensAvailable | ) |
Starts flow control processing
u16TotalTokensAvailable | initial number of flow control tokens available |
Definition at line 189 of file flowcontrolmanager.cc.
void EMANE::FlowControlManager::stop | ( | ) |
Stops flow control processing
Definition at line 194 of file flowcontrolmanager.cc.