A network statistics object, describes statistics for a given time period. More...
#include <stats.hpp>
Public Member Functions | |
| virtual | ~stats () |
| virtual size_t | uptime () const =0 |
| Returns the amount of seconds since creation. | |
| virtual size_t | packets_in () const =0 |
| Returns the amount of received packets for a particular collected statistics object. | |
| virtual size_t | packets_out () const =0 |
| Returns the amount of sent packets for a particular collected statistics object. | |
| virtual size_t | bytes_in () const =0 |
| Returns the amount of received bytes for a particular collected statistics object. | |
| virtual size_t | bytes_out () const =0 |
| Returns the amount of sent bytes for a particular collected statistics object. | |
A network statistics object, describes statistics for a given time period.
Definition at line 62 of file stats.hpp.
| virtual size_t ana::stats::bytes_in | ( | ) | const [pure virtual] |
Returns the amount of received bytes for a particular collected statistics object.
Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), network::get_connection_stats(), and ChatClient::parse_command().

| virtual size_t ana::stats::bytes_out | ( | ) | const [pure virtual] |
Returns the amount of sent bytes for a particular collected statistics object.
Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), network::get_connection_stats(), and ChatClient::parse_command().

| virtual size_t ana::stats::packets_in | ( | ) | const [pure virtual] |
Returns the amount of received packets for a particular collected statistics object.
Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), and ChatClient::parse_command().

| virtual size_t ana::stats::packets_out | ( | ) | const [pure virtual] |
Returns the amount of sent packets for a particular collected statistics object.
Referenced by network::get_bandwidth_stats(), network::get_bandwidth_stats_all(), and ChatClient::parse_command().

| virtual size_t ana::stats::uptime | ( | ) | const [pure virtual] |
Returns the amount of seconds since creation.
Referenced by network::get_connection_stats(), and ChatClient::parse_command().

| Generated by doxygen 1.7.1 on Fri May 25 2012 01:18:02 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |