Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | 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.

char nickserv [NICKMAX]
 Holds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/).

bool sync_soon

Detailed Description

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

Definition at line 30 of file servers.h.


Constructor & Destructor Documentation

serverrec::serverrec  ) 
 

Constructor.

Definition at line 27 of file servers.cpp.

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

00028 {
00029         strlcpy(name,"",256);
00030         pingtime = 0;
00031         lastping = TIME;
00032         usercount_i = usercount = opercount = version = 0;
00033         hops_away = 1;
00034         signon = TIME;
00035         jupiter = false;
00036         fd = 0;
00037         sync_soon = false;
00038         strlcpy(nickserv,"",NICKMAX);
00039 }

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

Constructor which initialises some of the main variables.

Definition at line 46 of file servers.cpp.

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

00047 {
00048         strlcpy(name,n,256);
00049         lastping = TIME;
00050         usercount_i = usercount = opercount = 0;
00051         version = ver;
00052         hops_away = 1;
00053         signon = TIME;
00054         jupiter = jupe;
00055         fd = 0;
00056         sync_soon = false;
00057         strlcpy(nickserv,"",NICKMAX);
00058 }

serverrec::~serverrec  ) 
 

Destructor.

Definition at line 42 of file servers.cpp.

00043 {
00044 }


Member Data Documentation

char serverrec::description[MAXBUF]
 

Description of the server.

Definition at line 61 of file servers.h.

int serverrec::hops_away
 

number of hops away (for quick access)

Definition at line 51 of file servers.h.

Referenced by serverrec().

bool serverrec::jupiter
 

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

Definition at line 57 of file servers.h.

Referenced by serverrec().

char serverrec::name[MAXBUF]
 

server name

Definition at line 36 of file servers.h.

Referenced by serverrec().

char serverrec::nickserv[NICKMAX]
 

Holds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/).

Definition at line 65 of file servers.h.

Referenced by serverrec().

long serverrec::opercount
 

opers on server

Definition at line 48 of file servers.h.

Referenced by serverrec().

long serverrec::pingtime
 

last ping response (ms)

Definition at line 39 of file servers.h.

Referenced by serverrec().

bool serverrec::sync_soon
 

Definition at line 67 of file servers.h.

Referenced by serverrec().

long serverrec::usercount
 

non-invisible users on server

Definition at line 45 of file servers.h.

Referenced by serverrec().

long serverrec::usercount_i
 

invisible users on server

Definition at line 42 of file servers.h.

Referenced by serverrec().

long serverrec::version
 

ircd version

Definition at line 54 of file servers.h.

Referenced by serverrec().


The documentation for this class was generated from the following files:
Generated on Sun May 15 18:39:02 2005 for InspIRCd by doxygen 1.3.3