RTP Audio System
2.0.0
|
Internet Flow. More...
#include <internetflow.h>
Public Member Functions | |
InternetFlow () | |
InternetFlow (const InternetFlow &flow) | |
InternetFlow (const InternetAddress &address, const card32 flowLabel, const card8 trafficClass) | |
void | reset () |
SocketAddress * | duplicate () const |
String | getAddressString (const cardinal format=PF_Default) const |
cardinal | getSystemAddress (sockaddr *buffer, const socklen_t length, const cardinal type) const |
bool | setSystemAddress (sockaddr *address, socklen_t length) |
card32 | getFlowInfo () const |
card32 | getFlowLabel () const |
void | setFlowLabel (const card32 flowLabel) |
card8 | getTrafficClass () const |
void | setTrafficClass (const card8 trafficClass) |
Private Attributes | |
card32 | FlowInfo |
Internet Flow.
This class inherits InternetAddress and contains an additional flow label for IPv6 support.
Constructor for a new InternetFlow.
InternetFlow::InternetFlow | ( | const InternetFlow & | flow | ) |
Constructor for a new InternetFlow.
flow | InternetFlow to be copied. |
InternetFlow::InternetFlow | ( | const InternetAddress & | address, |
const card32 | flowLabel, | ||
const card8 | trafficClass | ||
) |
Constructor for a new InternetFlow.
address | InternetAddress. |
flowLabel | Flow label (20 bits). |
trafficClass | Traffic class (8 bits). |
SocketAddress * InternetFlow::duplicate | ( | ) | const [virtual] |
duplicate() implementation of SocketAddress.
Reimplemented from InternetAddress.
String InternetFlow::getAddressString | ( | const cardinal | format = PF_Default | ) | const [virtual] |
getAddressString() implementation of SocketAddress.
Reimplemented from InternetAddress.
card32 InternetFlow::getFlowInfo | ( | ) | const [inline] |
Get IPv6 flow info: (flowLabel | (trafficClass << 20)).
card32 InternetFlow::getFlowLabel | ( | ) | const [inline] |
Get flow label.
cardinal InternetFlow::getSystemAddress | ( | sockaddr * | buffer, |
const socklen_t | length, | ||
const cardinal | type | ||
) | const [virtual] |
getSystemAddress() implementation of SocketAddressInterface.
Reimplemented from InternetAddress.
card8 InternetFlow::getTrafficClass | ( | ) | const [inline] |
Get traffic class.
void InternetFlow::reset | ( | ) | [virtual] |
Reset flow info.
Reimplemented from InternetAddress.
void InternetFlow::setFlowLabel | ( | const card32 | flowLabel | ) | [inline] |
Set flow label.
flowLabel | Flow label. |
bool InternetFlow::setSystemAddress | ( | sockaddr * | address, |
socklen_t | length | ||
) |
setSystemAddress() implementation of SocketAddressInterface.
void InternetFlow::setTrafficClass | ( | const card8 | trafficClass | ) | [inline] |
Set traffic class.
trafficClass | New traffic class. |
card32 InternetFlow::FlowInfo [private] |