class CongestionMonitor

Congestion Monitor. More...

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

Public Members


Detailed Description

This class implements a congestion monitor. It monitors a network using a NetworkMonitorInterface.

CongestionMonitor (NetworkMonitorInterface* monitor, const card64 bandwidth, const card8 flags = 0)

Constructor for a new CongestionMonitor.

Parameters:
monitorNetworkMonitorInterface for network monitor.
bandwidthBandwidth in bytes per second (*not* bits/s!).
flagsCongestionMonitor flags.

~CongestionMonitor ()

Destructor.

inline cardinal getReceivers ()

Get number of report receivers.

Returns: Number of report receivers.

bool addReportReceiver (Socket* receiver)

Add a report receiver to the congestion monitor.

Parameters:
receiverSocket with connection to the new receiver.

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

void removeReportReceiver (Socket* receiver)

Remove a report receiver from the congestion monitor.

Parameters:
receiverSocket of the receiver to be removed.