EPS Conduits  v0.0.2-2413
networking over networking
EPS::Statistics Struct Referencefinal

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...
 
Statisticsoperator+= (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...
 

Detailed Description

Track all of the transfer and bandwidth statistics.

Constructor & Destructor Documentation

◆ Statistics()

EPS::Statistics::Statistics ( void  )

Constructor.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void EPS::Statistics::clear ( void  )

Erase all stats.

Here is the caller graph for this function:

◆ empty()

bool EPS::Statistics::empty ( void  ) const

Determine if the statistics are all zero.

Here is the caller graph for this function:

◆ export_scorecard()

void EPS::Statistics::export_scorecard ( std::ofstream &  output,
const std::string &  prefix = "" 
) const

Export the statistics to a scorecard.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator+=()

EPS::Statistics & EPS::Statistics::operator+= ( const Statistics rhs)

Combine all statistics from rhs into lhs.

◆ to_string()

std::string EPS::Statistics::to_string ( void  ) const

Convert the statistics to a text string for logging.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bytes_dropped

uint64_t EPS::Statistics::bytes_dropped

bytes dropped

◆ connections_dropped

uint64_t EPS::Statistics::connections_dropped

◆ connections_established

uint64_t EPS::Statistics::connections_established

◆ direct_bps_in

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.

◆ direct_bps_out

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.

◆ direct_bytes_received

uint64_t EPS::Statistics::direct_bytes_received

direct client-to-client bytes received

◆ direct_bytes_sent

uint64_t EPS::Statistics::direct_bytes_sent

direct client-to-client bytes sent

◆ direct_packets_received

uint64_t EPS::Statistics::direct_packets_received

direct client-to-client packets received

◆ direct_packets_sent

uint64_t EPS::Statistics::direct_packets_sent

direct client-to-client packets sent

◆ packets_dropped

uint64_t EPS::Statistics::packets_dropped

packets dropped

◆ server_bps_fwd

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.

◆ server_bps_in

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.

◆ server_bps_out

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.

◆ server_bytes_forwarded

uint64_t EPS::Statistics::server_bytes_forwarded

bytes forwarded by the server to a client

◆ server_bytes_received

uint64_t EPS::Statistics::server_bytes_received

bytes received from the server

◆ server_bytes_sent

uint64_t EPS::Statistics::server_bytes_sent

bytes sent to the server

◆ server_packets_forwarded

uint64_t EPS::Statistics::server_packets_forwarded

packets forwarded by the server to a client

◆ server_packets_received

uint64_t EPS::Statistics::server_packets_received

packets received from the server

◆ server_packets_sent

uint64_t EPS::Statistics::server_packets_sent

packets sent to the server

◆ tap_bps_in

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.

◆ tap_bps_out

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.

◆ tap_bytes_received

uint64_t EPS::Statistics::tap_bytes_received

bytes read from the TAP interface

◆ tap_bytes_sent

uint64_t EPS::Statistics::tap_bytes_sent

bytes written to the TAP interface

◆ tap_packets_received

uint64_t EPS::Statistics::tap_packets_received

packets read from the TAP interface

◆ tap_packets_sent

uint64_t EPS::Statistics::tap_packets_sent

packets written to the TAP interface


The documentation for this struct was generated from the following files: