RTP Audio System
2.0.0
|
Traffic Shaper Singleton. More...
#include <trafficshaper.h>
Public Member Functions | |
TrafficShaperSingleton () | |
~TrafficShaperSingleton () | |
void | addTrafficShaper (TrafficShaper *ts) |
void | removeTrafficShaper (TrafficShaper *ts) |
Private Member Functions | |
void | timerEvent () |
Private Attributes | |
std::vector< TrafficShaper * > | ShaperSet |
cardinal | UserCount |
Traffic Shaper Singleton.
This class is a singleton for the traffic shaper.
Constructor.
Destructor.
void TrafficShaperSingleton::addTrafficShaper | ( | TrafficShaper * | ts | ) |
Add traffic shaper object.
ts | TrafficShaper. |
void TrafficShaperSingleton::removeTrafficShaper | ( | TrafficShaper * | ts | ) |
Remove traffic shaper object.
ts | TrafficShaper. |
void TrafficShaperSingleton::timerEvent | ( | ) | [private, virtual] |
The virtual timerEvent() method, which contains the timed thread's implementation. It has to be implemented by classes, which inherit TimedThread. This method is called regularly with the given interval.
Implements TimedThread.
std::vector<TrafficShaper*> TrafficShaperSingleton::ShaperSet [private] |
cardinal TrafficShaperSingleton::UserCount [private] |