Track all of the transfer and bandwidth statistics. More...
#include "Statistics.hpp"
Public Member Functions | |
Statistics (void) | |
Constructor. More... | |
void | clear (void) |
Erase all stats. More... | |
Statistics & | operator+= (const Statistics &rhs) |
Combine all statistics from rhs into lhs. More... | |
std::string | to_string (void) const |
Convert the statistics to a text string for logging. More... | |
bool | empty (void) const |
Determine if the statistics are all zero. More... | |
void | export_scorecard (std::ofstream &output, const std::string &prefix="") const |
Export the statistics to a scorecard. More... | |
Public Attributes | |
uint64_t | server_packets_forwarded |
packets forwarded by the server to a client More... | |
uint64_t | server_bytes_forwarded |
bytes forwarded by the server to a client More... | |
uint64_t | server_packets_received |
packets received from the server More... | |
uint64_t | server_bytes_received |
bytes received from the server More... | |
uint64_t | server_packets_sent |
packets sent to the server More... | |
uint64_t | server_bytes_sent |
bytes sent to the server More... | |
uint64_t | packets_dropped |
packets dropped More... | |
uint64_t | bytes_dropped |
bytes dropped More... | |
uint64_t | direct_packets_received |
direct client-to-client packets received More... | |
uint64_t | direct_bytes_received |
direct client-to-client bytes received More... | |
uint64_t | direct_packets_sent |
direct client-to-client packets sent More... | |
uint64_t | direct_bytes_sent |
direct client-to-client bytes sent More... | |
uint64_t | tap_packets_received |
packets read from the TAP interface More... | |
uint64_t | tap_bytes_received |
bytes read from the TAP interface More... | |
uint64_t | tap_packets_sent |
packets written to the TAP interface More... | |
uint64_t | tap_bytes_sent |
bytes written to the TAP interface More... | |
uint64_t | connections_established |
uint64_t | connections_dropped |
char | server_bps_in [EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals. More... | |
char | server_bps_out [EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals. More... | |
char | server_bps_fwd [EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals. More... | |
char | direct_bps_in [EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals. More... | |
char | direct_bps_out [EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals. More... | |
char | tap_bps_in [EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals. More... | |
char | tap_bps_out [EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals. More... | |
Track all of the transfer and bandwidth statistics.
EPS::Statistics::Statistics | ( | void | ) |
Constructor.
void EPS::Statistics::clear | ( | void | ) |
Erase all stats.
bool EPS::Statistics::empty | ( | void | ) | const |
Determine if the statistics are all zero.
void EPS::Statistics::export_scorecard | ( | std::ofstream & | output, |
const std::string & | prefix = "" |
||
) | const |
Export the statistics to a scorecard.
EPS::Statistics & EPS::Statistics::operator+= | ( | const Statistics & | rhs | ) |
Combine all statistics from rhs into lhs.
std::string EPS::Statistics::to_string | ( | void | ) | const |
Convert the statistics to a text string for logging.
uint64_t EPS::Statistics::bytes_dropped |
bytes dropped
uint64_t EPS::Statistics::connections_dropped |
uint64_t EPS::Statistics::connections_established |
char EPS::Statistics::direct_bps_in[EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals.
char EPS::Statistics::direct_bps_out[EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals.
uint64_t EPS::Statistics::direct_bytes_received |
direct client-to-client bytes received
uint64_t EPS::Statistics::direct_bytes_sent |
direct client-to-client bytes sent
uint64_t EPS::Statistics::direct_packets_received |
direct client-to-client packets received
uint64_t EPS::Statistics::direct_packets_sent |
direct client-to-client packets sent
uint64_t EPS::Statistics::packets_dropped |
packets dropped
char EPS::Statistics::server_bps_fwd[EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals.
char EPS::Statistics::server_bps_in[EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals.
char EPS::Statistics::server_bps_out[EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals.
uint64_t EPS::Statistics::server_bytes_forwarded |
bytes forwarded by the server to a client
uint64_t EPS::Statistics::server_bytes_received |
bytes received from the server
uint64_t EPS::Statistics::server_bytes_sent |
bytes sent to the server
uint64_t EPS::Statistics::server_packets_forwarded |
packets forwarded by the server to a client
uint64_t EPS::Statistics::server_packets_received |
packets received from the server
uint64_t EPS::Statistics::server_packets_sent |
packets sent to the server
char EPS::Statistics::tap_bps_in[EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals.
char EPS::Statistics::tap_bps_out[EPS::bps_string_size] |
The BPS strings are calculated from other variables, and represent the latest results, not totals.
uint64_t EPS::Statistics::tap_bytes_received |
bytes read from the TAP interface
uint64_t EPS::Statistics::tap_bytes_sent |
bytes written to the TAP interface
uint64_t EPS::Statistics::tap_packets_received |
packets read from the TAP interface
uint64_t EPS::Statistics::tap_packets_sent |
packets written to the TAP interface