class CongestionManagerClient

Congestion Manager Client. More...

Full nameCoral::CongestionManagerClient
Definition#include <congestionmanagerclient.h>
InheritsCoral::TimedThread
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

This class implements a client for the congestion manager. Multiple streams can be managed over one connection to the manager.

CongestionManagerClient (const char* manager)

Constructor for a new CongestionManagerClient.

Parameters:
managerAddress to congestion manager (e.g. "odin:7600").

~CongestionManagerClient ()

Destructor.

inline bool ready ()
[const]

Check, if CongestionManagerClient is ready.

Returns: true, if ready; false otherwise.

inline cardinal getStreams ()

Get number of streams manager by this client.

Returns: Number of streams.

bool addStream (const cardinal identifier, const ExtendedTransportInfo& streamDescription)

Add a new stream.

Parameters:
identifierIdentifer for the stream (has to be unique within the client, but not the manager!).
streamDescriptionExtendedTransportInfo of the stream.

Returns: true, if stream has been added; false otherwise.

void removeStream (const cardinal identifier)

Remove stream with given identifier.

Parameters:
identifierIdentifer of the stream.

bool getSuggestedTransportInfo (const cardinal identifier, ExtendedTransportInfo& streamDescription)

Get suggested transport info of a given identifier.

Parameters:
identifierIdentifer of the stream.
streamDescriptionMemory to store the ExtendedTransportInfo structure.

Returns: true, if transportInfo contains a new suggestion; false if there is no valid suggestion receiver from manager.

void setTransportInfo (const cardinal identifier, const ExtendedTransportInfo& streamDescription)

Set transport info of a given identifier for a given identifier.

Parameters:
identifierIdentifer of the stream.
streamDescriptionNew ExtendedTransportInfo.

static const card8 CongestionManagerClientTrafficClass

IPv6 traffic class of CongestionManagerClient.