class InternetFlow

Internet Flow. More...

Full nameCoral::InternetFlow
Definition#include <internetflow.h>
InheritsCoral::InternetAddress [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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

 InternetFlow ()

InternetFlow

Constructor for a new InternetFlow.

 InternetFlow (const InternetFlow& flow)

InternetFlow

Constructor for a new InternetFlow.

Parameters:
flowInternetFlow to be copied.

 InternetFlow (const InternetAddress& address, const card32 flowLabel, const card8 trafficClass)

InternetFlow

Constructor for a new InternetFlow.

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

void  reset ()

reset

Reset flow info.

Reimplemented from InternetAddress.

String  getAddressString (const cardinal format = PF_Default)

getAddressString

[const]

getAddressString() implementation of SocketAddress.

See also: SocketAddress#getAddressString

Reimplemented from InternetAddress.

cardinal  getSystemAddress (sockaddr* buffer, const socklen_t length, const cardinal type)

getSystemAddress

[const]

getSystemAddress() implementation of SocketAddressInterface.

See also: SocketAddressInterface#getSystemAddress

Reimplemented from InternetAddress.

bool  setSystemAddress (sockaddr* address, socklen_t length)

setSystemAddress

setSystemAddress() implementation of SocketAddressInterface.

See also: SocketAddressInterface#setSystemAddress

Reimplemented from InternetAddress.

inline card32  getFlowInfo ()

getFlowInfo

[const]

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

Returns: Flow info.

inline card32  getFlowLabel ()

getFlowLabel

[const]

Get flow label.

Returns: Flow label.

inline void  setFlowLabel (const card32 flowLabel)

setFlowLabel

Set flow label.

Parameters:
flowLabelFlow label.

inline card8  getTrafficClass ()

getTrafficClass

[const]

Get traffic class.

Returns: Traffic class.

inline void  setTrafficClass (const card8 trafficClass)

setTrafficClass

Set traffic class.

Parameters:
trafficClassNew traffic class.