|
|
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:
manager | Address to congestion manager (e.g. "odin:7600"). |
~CongestionManagerClient () |
Destructor.
inline bool ready () |
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:
identifier | Identifer for the stream (has to be unique within the client, but not the manager!). |
streamDescription | ExtendedTransportInfo of the stream. |
Returns: true, if stream has been added; false otherwise.
void removeStream (const cardinal identifier) |
Remove stream with given identifier.
Parameters:
identifier | Identifer of the stream. |
bool getSuggestedTransportInfo (const cardinal identifier, ExtendedTransportInfo& streamDescription) |
Get suggested transport info of a given identifier.
Parameters:
identifier | Identifer of the stream. |
streamDescription | Memory 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:
identifier | Identifer of the stream. |
streamDescription | New ExtendedTransportInfo. |
static const card8 CongestionManagerClientTrafficClass |
IPv6 traffic class of CongestionManagerClient.