The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

serverstats Class Reference

This class contains various STATS counters It is used by the InspIRCd class, which internally has an instance of it. More...

#include <inspircd.h>

Inheritance diagram for serverstats:

Inheritance graph
[legend]
Collaboration diagram for serverstats:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 serverstats ()
 The constructor initializes all the counts to zero.

Public Attributes

unsigned long statsAccept
 Number of accepted connections.
unsigned long statsRefused
 Number of failed accepts.
unsigned long statsUnknown
 Number of unknown commands seen.
unsigned long statsCollisions
 Number of nickname collisions handled.
unsigned long statsDns
 Number of DNS queries sent out.
unsigned long statsDnsGood
 Number of good DNS replies received NOTE: This may not tally to the number sent out, due to timeouts and other latency issues.
unsigned long statsDnsBad
 Number of bad (negative) DNS replies received NOTE: This may not tally to the number sent out, due to timeouts and other latency issues.
unsigned long statsConnects
 Number of inbound connections seen.
double statsSent
 Total bytes of data transmitted.
double statsRecv
 Total bytes of data received.
timeval LastCPU
 Cpu usage at last sample.
timeval LastSampled
 Time last sample was read.

Detailed Description

This class contains various STATS counters It is used by the InspIRCd class, which internally has an instance of it.

Definition at line 212 of file inspircd.h.


Constructor & Destructor Documentation

serverstats::serverstats  )  [inline]
 

The constructor initializes all the counts to zero.

Definition at line 257 of file inspircd.h.


Member Data Documentation

timeval serverstats::LastCPU
 

Cpu usage at last sample.

Definition at line 251 of file inspircd.h.

Referenced by InspIRCd::Run().

timeval serverstats::LastSampled
 

Time last sample was read.

Definition at line 254 of file inspircd.h.

unsigned long serverstats::statsAccept
 

Number of accepted connections.

Definition at line 217 of file inspircd.h.

Referenced by ListenSocketBase::AcceptInternal(), and DNS::PRNG().

unsigned long serverstats::statsCollisions
 

Number of nickname collisions handled.

Definition at line 226 of file inspircd.h.

Referenced by User::ForceNickChange(), and DNS::PRNG().

unsigned long serverstats::statsConnects
 

Number of inbound connections seen.

Definition at line 242 of file inspircd.h.

Referenced by User::FullConnect(), and DNS::PRNG().

unsigned long serverstats::statsDns
 

Number of DNS queries sent out.

Definition at line 229 of file inspircd.h.

Referenced by DNS::HandleEvent().

unsigned long serverstats::statsDnsBad
 

Number of bad (negative) DNS replies received NOTE: This may not tally to the number sent out, due to timeouts and other latency issues.

Definition at line 239 of file inspircd.h.

Referenced by DNS::HandleEvent(), UserResolver::OnError(), and DNS::PRNG().

unsigned long serverstats::statsDnsGood
 

Number of good DNS replies received NOTE: This may not tally to the number sent out, due to timeouts and other latency issues.

Definition at line 234 of file inspircd.h.

Referenced by DNS::HandleEvent(), and DNS::PRNG().

double serverstats::statsRecv
 

Total bytes of data received.

Definition at line 248 of file inspircd.h.

Referenced by DNS::PRNG().

unsigned long serverstats::statsRefused
 

Number of failed accepts.

Definition at line 220 of file inspircd.h.

Referenced by ListenSocketBase::AcceptInternal().

double serverstats::statsSent
 

Total bytes of data transmitted.

Definition at line 245 of file inspircd.h.

Referenced by DNS::PRNG(), and User::Write().

unsigned long serverstats::statsUnknown
 

Number of unknown commands seen.

Definition at line 223 of file inspircd.h.

Referenced by CommandParser::ProcessCommand().


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