Public Member Functions | Public Attributes

network::statistics Struct Reference

#include <network.hpp>

List of all members.

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.
size_t current
 The current buffer accumulated bytes (sent/received.
size_t current_max
 The current buffer size (i.e.

Detailed Description

Definition at line 270 of file network.hpp.


Constructor & Destructor Documentation

network::statistics::statistics (  )  [inline]

Definition at line 272 of file network.hpp.


Member Function Documentation

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

Definition at line 273 of file network.hpp.

References current, and current_max.

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

Definition at line 287 of file network.hpp.

References operator==().

Here is the call graph for this function:

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

Definition at line 283 of file network.hpp.

References current, current_max, and total.

Referenced by operator!=().

Here is the caller graph for this function:

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

Definition at line 278 of file network.hpp.

References current, and total.


Member Data Documentation

The current buffer accumulated bytes (sent/received.

)

Definition at line 292 of file network.hpp.

Referenced by fresh_current(), ana_component::get_receive_stats(), ana_component::get_send_stats(), dialogs::network_data_dialog(), operator==(), and transfer().

The current buffer size (i.e.

being received/sent.)

Definition at line 293 of file network.hpp.

Referenced by fresh_current(), ana_component::get_receive_stats(), ana_component::get_send_stats(), dialogs::network_data_dialog(), and operator==().

The accumulated bytes of the session.

Definition at line 291 of file network.hpp.

Referenced by ana_component::get_receive_stats(), ana_component::get_send_stats(), operator==(), and transfer().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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