Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CStatistics Class Reference

#include <Statistics.h>

List of all members.

Public Member Functions

 CStatistics ()
virtual ~CStatistics ()
void Update ()

Public Attributes

struct {
   struct {
      QWORD   Connected
      QWORD   Hub
      QWORD   Ultrapeer
   }   Timer
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Connections
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Bandwidth
   struct {
      QWORD   Files
      QWORD   Volume
   }   Uploads
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella1
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella2
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Dropped
   }   eDonkey
Ever
struct {
   struct {
      QWORD   Connected
      QWORD   Hub
      QWORD   Ultrapeer
   }   Timer
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Connections
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Bandwidth
   struct {
      QWORD   Files
      QWORD   Volume
   }   Uploads
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella1
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella2
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Dropped
   }   eDonkey
Today
struct {
   struct {
      QWORD   Connected
      QWORD   Hub
      QWORD   Ultrapeer
   }   Timer
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Connections
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Bandwidth
   struct {
      QWORD   Files
      QWORD   Volume
   }   Uploads
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella1
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella2
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Dropped
   }   eDonkey
Last
struct {
   struct {
      QWORD   Connected
      QWORD   Hub
      QWORD   Ultrapeer
   }   Timer
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Connections
   struct {
      QWORD   Outgoing
      QWORD   Incoming
   }   Bandwidth
   struct {
      QWORD   Files
      QWORD   Volume
   }   Uploads
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella1
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Routed
      QWORD   Dropped
      QWORD   Lost
      QWORD   Queries
   }   Gnutella2
   struct {
      QWORD   Outgoing
      QWORD   Incoming
      QWORD   Dropped
   }   eDonkey
Current
DWORD m_tUpdate
DWORD m_tSeconds

Static Protected Member Functions

static void Add (LPVOID pTarget, LPCVOID pSource, int nCount)


Constructor & Destructor Documentation

CStatistics::CStatistics  ) 
 

Definition at line 40 of file Statistics.cpp.

References Current, Ever, m_tSeconds, m_tUpdate, and Today.

CStatistics::~CStatistics  )  [virtual]
 

Definition at line 49 of file Statistics.cpp.


Member Function Documentation

void CStatistics::Add LPVOID  pTarget,
LPCVOID  pSource,
int  nCount
[static, protected]
 

Definition at line 84 of file Statistics.cpp.

Referenced by Update().

void CStatistics::Update  ) 
 

Definition at line 56 of file Statistics.cpp.

References Add(), Current, Ever, CNeighboursWithConnect::IsG1Ultrapeer(), CNeighboursWithConnect::IsG2Hub(), CNetwork::IsWellConnected(), Last, m_tSeconds, m_tUpdate, Neighbours, Network, and Today.

Referenced by CGraphItem::GetValue(), and CMainWnd::OnTimer().


Member Data Documentation

struct { ... } CStatistics::Bandwidth
 

QWORD CStatistics::Connected
 

Definition at line 41 of file Statistics.h.

struct { ... } CStatistics::Connections
 

struct { ... } CStatistics::Current
 

Referenced by CConnection::AcceptFrom(), CG1PacketBuffer::Add(), CUploadFile::AddFragment(), CConnection::ConnectTo(), CStatistics(), CUploadTransferED2K::DispatchNextChunk(), CG1PacketBufferType::Get(), CNeighbour::OnCommonHit(), CEDNeighbour::OnFoundSources(), CG1Neighbour::OnHit(), CDatagrams::OnHit(), CG2Neighbour::OnPacket(), CG1Neighbour::OnPacket(), CEDNeighbour::OnPacket(), CG1Neighbour::OnPing(), CG1Neighbour::OnPong(), CG2Neighbour::OnPush(), CG1Neighbour::OnPush(), CDatagrams::OnPush(), CG2Neighbour::OnQuery(), CG1Neighbour::OnQuery(), CDatagrams::OnQuery(), CConnection::OnRead(), CEDNeighbour::OnSearchResults(), CG1Neighbour::OnVendor(), CUploadTransferHTTP::OnWrite(), CConnection::OnWrite(), CBuffer::Receive(), CNetwork::RouteHits(), CNetwork::RoutePacket(), CNeighboursWithRouting::RouteQuery(), CG2Neighbour::Send(), CG1Neighbour::Send(), CEDNeighbour::Send(), CBuffer::Send(), CUploadTransferBT::ServeRequests(), CDatagrams::TryRead(), and Update().

QWORD CStatistics::Dropped
 

Definition at line 78 of file Statistics.h.

struct { ... } CStatistics::eDonkey
 

struct { ... } CStatistics::Ever
 

Referenced by CStatistics(), and Update().

QWORD CStatistics::Files
 

Definition at line 60 of file Statistics.h.

struct { ... } CStatistics::Gnutella1
 

struct { ... } CStatistics::Gnutella2
 

QWORD CStatistics::Hub
 

Definition at line 42 of file Statistics.h.

QWORD CStatistics::Incoming
 

Definition at line 77 of file Statistics.h.

struct { ... } CStatistics::Last
 

Referenced by CGraphItem::GetValue(), and Update().

QWORD CStatistics::Lost
 

Definition at line 70 of file Statistics.h.

DWORD CStatistics::m_tSeconds
 

Definition at line 84 of file Statistics.h.

Referenced by CStatistics(), and Update().

DWORD CStatistics::m_tUpdate
 

Definition at line 83 of file Statistics.h.

Referenced by CStatistics(), and Update().

QWORD CStatistics::Outgoing
 

Definition at line 76 of file Statistics.h.

QWORD CStatistics::Queries
 

Definition at line 71 of file Statistics.h.

QWORD CStatistics::Routed
 

Definition at line 68 of file Statistics.h.

struct { ... } CStatistics::Timer
 

struct { ... } CStatistics::Today
 

Referenced by CStatistics(), Update(), CHomeConnectionBox::Update(), and CHomeUploadsBox::Update().

QWORD CStatistics::Ultrapeer
 

Definition at line 43 of file Statistics.h.

struct { ... } CStatistics::Uploads
 

QWORD CStatistics::Volume
 

Definition at line 61 of file Statistics.h.


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:12 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2