class NetworkMonitorInterface

Network Monitor Interface. More...

Contains pure virtuals
Full nameCoral::NetworkMonitorInterface
Definition#include <networkmonitorinterface.h>
Inherited byNetworkMonitor, NetworkMonitorSimulator
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class is an interface for a network monitor, which sums bytes and packets transmitted.

NetworkMonitorInterface ()

[pure virtual]

Virtual destructor.

bool  ready ()

[const pure virtual]

Check, if NetworkMonitor is ready.

Returns: true, if ready; false, if not.

void  lock ()

[pure virtual]

Lock monitor to access data.

void  unlock ()

[pure virtual]

Unlock monitor.

void  resetReport ()

[pure virtual]

Reset the network report.

void  getReport (NetworkMonitorReport* report)

[pure virtual]

Get a copy of the network report created by the monitor.

Parameters:
reportAddress of NetworkMonitorReport to store the report.

void  moveReport (NetworkMonitorReport* report)

[pure virtual]

Get a copy of the network report created by the monitor, then reset the report. Note: Do *not* use getReport() and resetReport() to get a report and reset the monitor's report. The monitor could have received packets between getReport() and resetReport()!

Parameters:
reportAddress of NetworkMonitorReport to store the report.