Main Page   Namespace List   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)

char description [MAXBUF]
 Description of the server.

bool sync_soon

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, sync_soon, 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         sync_soon = false;
00023 }

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

Constructor which initialises some of the main variables.

Definition at line 30 of file servers.cpp.

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

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

serverrec::~serverrec  
 

Destructor.

Definition at line 26 of file servers.cpp.

00027 {
00028 }


Member Data Documentation

char serverrec::description[MAXBUF]
 

Description of the server.

Definition at line 50 of file servers.h.

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().

bool serverrec::sync_soon
 

Definition at line 52 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 Sun Apr 25 00:24:29 2004 for InspIRCd by doxygen1.3-rc3