RTP Trace System  1.0
Coral::InternetFlow Class Reference

Internet Flow. More...

#include <internetflow.h>

Inheritance diagram for Coral::InternetFlow:
Coral::InternetAddress Coral::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 ()
String getAddressString () 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.
Coral::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

Get address string.

Returns:
Address string.

Reimplemented from Coral::InternetAddress.

card32 Coral::Coral::InternetFlow::getFlowInfo ( ) const [inline]

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

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

Get flow label.

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

getSystemAddress() implementation of SocketAddressInterface.

See also:
SocketAddressInterface::getSystemAddress

Reimplemented from Coral::InternetAddress.

card8 Coral::Coral::InternetFlow::getTrafficClass ( ) const [inline]

Get traffic class.

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

Reset flow info.

Reimplemented from Coral::InternetAddress.

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

Set flow label.

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

setSystemAddress() implementation of SocketAddressInterface.

See also:
SocketAddressInterface::setSystemAddress

Reimplemented from Coral::InternetAddress.

void Coral::Coral::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