RTP Audio System
2.0.0
|
Traffic Class Values. More...
#include <trafficclassvalues.h>
Static Public Member Functions | |
static card8 | getTrafficClassForIndex (const cardinal index) |
static const card16 | getTrafficClassForName (const char *name) |
static const char * | getNameForTrafficClass (const card8 trafficClass) |
static const char * | getNameForIndex (const cardinal index) |
static cardinal | getIndexForTrafficClass (const card8 trafficClass) |
Static Public Attributes | |
static const cardinal | MaxValues = 16 |
Static Private Attributes | |
static const card8 | TCValues [MaxValues] |
static const char * | TCNames [TrafficClassValues::MaxValues] |
Traffic Class Values.
This class contains a set of values for the traffic class/TOS byte of IP packets. This class contains only static methods and attributes.
cardinal TrafficClassValues::getIndexForTrafficClass | ( | const card8 | trafficClass | ) | [static] |
Get index for given traffic class.
trafficClass | Traffic class. |
static const char* TrafficClassValues::getNameForIndex | ( | const cardinal | index | ) | [inline, static] |
Get name for index entry.
index | Index. |
const char * TrafficClassValues::getNameForTrafficClass | ( | const card8 | trafficClass | ) | [static] |
Get name for given traffic class.
trafficClass | Traffic class. |
static card8 TrafficClassValues::getTrafficClassForIndex | ( | const cardinal | index | ) | [inline, static] |
Get traffic class of given index.
index | Index. |
const card16 TrafficClassValues::getTrafficClassForName | ( | const char * | name | ) | [static] |
Get traffic class for name.
name | Name. |
const cardinal TrafficClassValues::MaxValues = 16 [static] |
Number of values.
const char * TrafficClassValues::TCNames [static, private] |
{ "EF", "AF11","AF12","AF13", "AF21","AF22","AF23", "AF31","AF32","AF33", "AF41","AF42","AF43", "TD1", "TD2", "BE" }
const card8 TrafficClassValues::TCValues [static, private] |
{ 0xb8, 0x28, 0x30, 0x38, 0x48, 0x50, 0x58, 0x68, 0x70, 0x78, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0x00 }