InspIRCd  2.0
Public Member Functions | Public Attributes | List of all members
serverstats Class Reference

#include <inspircd.h>

Public Member Functions

 serverstats ()
 

Public Attributes

unsigned long statsAccept
 
unsigned long statsRefused
 
unsigned long statsUnknown
 
unsigned long statsCollisions
 
unsigned long statsDns
 
unsigned long statsDnsGood
 
unsigned long statsDnsBad
 
unsigned long statsConnects
 
unsigned long statsSent
 
unsigned long statsRecv
 
timeval LastCPU
 
timespec LastSampled
 

Detailed Description

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

Constructor & Destructor Documentation

◆ serverstats()

serverstats::serverstats ( )
inline

The constructor initializes all the counts to zero

Member Data Documentation

◆ LastCPU

timeval serverstats::LastCPU

Cpu usage at last sample

◆ LastSampled

timespec serverstats::LastSampled

Time last sample was read

◆ statsAccept

unsigned long serverstats::statsAccept

Number of accepted connections

◆ statsCollisions

unsigned long serverstats::statsCollisions

Number of nickname collisions handled

◆ statsConnects

unsigned long serverstats::statsConnects

Number of inbound connections seen

◆ statsDns

unsigned long serverstats::statsDns

Number of DNS queries sent out

◆ statsDnsBad

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.

◆ statsDnsGood

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.

◆ statsRecv

unsigned long serverstats::statsRecv

Total bytes of data received

◆ statsRefused

unsigned long serverstats::statsRefused

Number of failed accepts

◆ statsSent

unsigned long serverstats::statsSent

Total bytes of data transmitted

◆ statsUnknown

unsigned long serverstats::statsUnknown

Number of unknown commands seen


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