Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

serverrec Class Reference

A class that defines the local server or a remote server. More...

#include <servers.h>

Inheritance diagram for serverrec:

Inheritance graph
[legend]
Collaboration diagram for serverrec:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 serverrec ()
 Constructor.

 serverrec (char *n, long ver, bool jupe)
 Constructor which initialises some of the main variables.

 ~serverrec ()
 Destructor.


Public Attributes

char name [MAXBUF]
 server name

long pingtime
 last ping response (ms)

long usercount_i
 invisible users on server

long usercount
 non-invisible users on server

long opercount
 opers on server

int hops_away
 number of hops away (for quick access)

long version
 ircd version

bool jupiter
 is a JUPE server (faked to enforce a server ban)


Detailed Description

A class that defines the local server or a remote server.

Definition at line 19 of file servers.h.


Constructor & Destructor Documentation

serverrec::serverrec  
 

Constructor.

Definition at line 12 of file servers.cpp.

References connection::fd, hops_away, jupiter, connection::lastping, opercount, pingtime, connection::signon, usercount, usercount_i, and version.

00013 {
00014         strcpy(name,"");
00015         pingtime = 0;
00016         lastping = time(NULL);
00017         usercount_i = usercount = opercount = version = 0;
00018         hops_away = 1;
00019         signon = time(NULL);
00020         jupiter = false;
00021         fd = 0;
00022 }

serverrec::serverrec char *    n,
long    ver,
bool    jupe
 

Constructor which initialises some of the main variables.

Definition at line 29 of file servers.cpp.

References connection::fd, hops_away, jupiter, connection::lastping, opercount, connection::signon, usercount, usercount_i, and version.

00030 {
00031         strcpy(name,n);
00032         lastping = time(NULL);
00033         usercount_i = usercount = opercount = 0;
00034         version = ver;
00035         hops_away = 1;
00036         signon = time(NULL);
00037         jupiter = jupe;
00038         fd = 0;
00039 }

serverrec::~serverrec  
 

Destructor.

Definition at line 25 of file servers.cpp.

00026 {
00027 }


Member Data Documentation

int serverrec::hops_away
 

number of hops away (for quick access)

Definition at line 40 of file servers.h.

Referenced by serverrec().

bool serverrec::jupiter
 

is a JUPE server (faked to enforce a server ban)

Definition at line 46 of file servers.h.

Referenced by serverrec().

char serverrec::name[MAXBUF]
 

server name

Definition at line 25 of file servers.h.

long serverrec::opercount
 

opers on server

Definition at line 37 of file servers.h.

Referenced by serverrec().

long serverrec::pingtime
 

last ping response (ms)

Definition at line 28 of file servers.h.

Referenced by serverrec().

long serverrec::usercount
 

non-invisible users on server

Definition at line 34 of file servers.h.

Referenced by serverrec().

long serverrec::usercount_i
 

invisible users on server

Definition at line 31 of file servers.h.

Referenced by serverrec().

long serverrec::version
 

ircd version

Definition at line 43 of file servers.h.

Referenced by serverrec().


The documentation for this class was generated from the following files:
Generated on Sat Apr 3 16:36:18 2004 for InspIRCd by doxygen1.3-rc3