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

#include <inspircd.h>

Public Member Functions

 serverstats ()
 

Public Attributes

unsigned long Accept
 
unsigned long Refused
 
unsigned long Unknown
 
unsigned long Collisions
 
unsigned long Dns
 
unsigned long DnsGood
 
unsigned long DnsBad
 
unsigned long Connects
 
unsigned long Sent
 
unsigned long Recv
 
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

◆ Accept

unsigned long serverstats::Accept

Number of accepted connections

◆ Collisions

unsigned long serverstats::Collisions

Number of nickname collisions handled

◆ Connects

unsigned long serverstats::Connects

Number of inbound connections seen

◆ Dns

unsigned long serverstats::Dns

Number of DNS queries sent out

◆ DnsBad

unsigned long serverstats::DnsBad

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

◆ DnsGood

unsigned long serverstats::DnsGood

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

◆ LastCPU

timeval serverstats::LastCPU

Cpu usage at last sample

◆ LastSampled

timespec serverstats::LastSampled

Time last sample was read

◆ Recv

unsigned long serverstats::Recv

Total bytes of data received

◆ Refused

unsigned long serverstats::Refused

Number of failed accepts

◆ Sent

unsigned long serverstats::Sent

Total bytes of data transmitted

◆ Unknown

unsigned long serverstats::Unknown

Number of unknown commands seen


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