SatCat5
satcat5::io::Counter Class Referenceabstract

Detailed Description

Define a generic API for reporting traffic statistics.

These functions report cumulative counters since the last reset. Each method includes a "reset" parameter, defaulting to true, to provide an atomic query+reset as the default operation. (i.e., Reporting accurate counter values since the last query.)

Definition at line 26 of file io_counter.h.

#include <io_counter.h>

Inheritance diagram for satcat5::io::Counter:
[legend]

Public Member Functions

virtual unsigned byte_count (bool reset=true)=0
 Bytes transferred since the last query.
 
virtual unsigned frame_count (bool reset=true)=0
 Frames transferred since the last query.
 
virtual unsigned error_count (bool reset=true)
 (Optional) Error events since the last query.
 

The documentation for this class was generated from the following file: