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 | List of all members
network::statistics Struct Reference

#include <network.hpp>

Public Member Functions

 statistics ()
 
void fresh_current (size_t len)
 
void transfer (size_t size)
 
bool operator== (const statistics &stats) const
 
bool operator!= (const statistics &stats) const
 

Public Attributes

size_t total
 The accumulated bytes of the session. More...
 
size_t current
 The current buffer accumulated bytes (sent/received.) More...
 
size_t current_max
 The current buffer size (i.e. More...
 

Detailed Description

Definition at line 273 of file network.hpp.

Constructor & Destructor Documentation

network::statistics::statistics ( )
inline

Definition at line 275 of file network.hpp.

Member Function Documentation

void network::statistics::fresh_current ( size_t  len)
inline

Definition at line 276 of file network.hpp.

References current, and current_max.

bool network::statistics::operator!= ( const statistics stats) const
inline

Definition at line 290 of file network.hpp.

References operator==().

bool network::statistics::operator== ( const statistics stats) const
inline

Definition at line 286 of file network.hpp.

References current, current_max, and total.

Referenced by operator!=().

void network::statistics::transfer ( size_t  size)
inline

Definition at line 281 of file network.hpp.

References current, and total.

Member Data Documentation

size_t network::statistics::current

The current buffer accumulated bytes (sent/received.)

Definition at line 295 of file network.hpp.

Referenced by fresh_current(), operator==(), and transfer().

size_t network::statistics::current_max

The current buffer size (i.e.

being received/sent.)

Definition at line 296 of file network.hpp.

Referenced by fresh_current(), and operator==().

size_t network::statistics::total

The accumulated bytes of the session.

Definition at line 294 of file network.hpp.

Referenced by operator==(), and transfer().


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