The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
network::bandwidth_stats Struct Reference

Public Member Functions

bandwidth_statsoperator+= (const bandwidth_stats &a)
 

Public Attributes

int out_packets
 
int out_bytes
 
int in_packets
 
int in_bytes
 
int day
 

Static Public Attributes

static const size_t type_width = 16
 
static const size_t packet_width = 7
 
static const size_t bytes_width = 10
 

Detailed Description

Definition at line 942 of file network.cpp.

Member Function Documentation

bandwidth_stats& network::bandwidth_stats::operator+= ( const bandwidth_stats a)
inline

Definition at line 951 of file network.cpp.

References in_bytes, in_packets, out_bytes, and out_packets.

Member Data Documentation

const size_t network::bandwidth_stats::bytes_width = 10
static
int network::bandwidth_stats::day

Definition at line 947 of file network.cpp.

int network::bandwidth_stats::in_bytes

Definition at line 946 of file network.cpp.

Referenced by operator+=().

int network::bandwidth_stats::in_packets

Definition at line 945 of file network.cpp.

Referenced by operator+=().

int network::bandwidth_stats::out_bytes

Definition at line 944 of file network.cpp.

Referenced by operator+=().

int network::bandwidth_stats::out_packets

Definition at line 943 of file network.cpp.

Referenced by operator+=().

const size_t network::bandwidth_stats::packet_width = 7
static
const size_t network::bandwidth_stats::type_width = 16
static

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