RTP Audio System  2.0.0
InternetFlow Class Reference

Internet Flow. More...

#include <internetflow.h>

Inheritance diagram for InternetFlow:
InternetAddress SocketAddress

List of all members.

Public Member Functions

 InternetFlow ()
 InternetFlow (const InternetFlow &flow)
 InternetFlow (const InternetAddress &address, const card32 flowLabel, const card8 trafficClass)
void reset ()
SocketAddressduplicate () 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

Detailed Description

Internet Flow.

This class inherits InternetAddress and contains an additional flow label for IPv6 support.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

Constructor for a new InternetFlow.

Constructor for a new InternetFlow.

Parameters:
flowInternetFlow to be copied.
InternetFlow::InternetFlow ( const InternetAddress address,
const card32  flowLabel,
const card8  trafficClass 
)

Constructor for a new InternetFlow.

Parameters:
addressInternetAddress.
flowLabelFlow label (20 bits).
trafficClassTraffic class (8 bits).

Member Function Documentation

SocketAddress * InternetFlow::duplicate ( ) const [virtual]

duplicate() implementation of SocketAddress.

See also:
SocketAddress::duplicate

Reimplemented from InternetAddress.

String InternetFlow::getAddressString ( const cardinal  format = PF_Default) const [virtual]

getAddressString() implementation of SocketAddress.

See also:
SocketAddress::getAddressString

Reimplemented from InternetAddress.

card32 InternetFlow::getFlowInfo ( ) const [inline]

Get IPv6 flow info: (flowLabel | (trafficClass << 20)).

Returns:
Flow info.
card32 InternetFlow::getFlowLabel ( ) const [inline]

Get flow label.

Returns:
Flow label.
cardinal InternetFlow::getSystemAddress ( sockaddr *  buffer,
const socklen_t  length,
const cardinal  type 
) const [virtual]

getSystemAddress() implementation of SocketAddressInterface.

See also:
SocketAddressInterface::getSystemAddress

Reimplemented from InternetAddress.

Get traffic class.

Returns:
Traffic class.
void InternetFlow::reset ( ) [virtual]

Reset flow info.

Reimplemented from InternetAddress.

void InternetFlow::setFlowLabel ( const card32  flowLabel) [inline]

Set flow label.

Parameters:
flowLabelFlow label.
bool InternetFlow::setSystemAddress ( sockaddr *  address,
socklen_t  length 
)

setSystemAddress() implementation of SocketAddressInterface.

See also:
SocketAddressInterface::setSystemAddress
void InternetFlow::setTrafficClass ( const card8  trafficClass) [inline]

Set traffic class.

Parameters:
trafficClassNew traffic class.

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines