inspircd/include/servers.h
brain 0ae832406f Fixed <link> tags
Stability fixes/bounds checks
UDP tunneling working for server->server


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@350 e03df62e-2008-0410-955e-edbf42e46eb7
2004-04-01 20:21:06 +00:00

63 lines
971 B
C++

/*
*/
#include "inspircd_config.h"
#include "connection.h"
#include <string>
#include <map>
#ifndef __SERVERS_H__
#define __SERVERS_H__
#define LINK_ACTIVE 1
#define LINK_INACTIVE 0
/** A class that defines the local server or a remote server
*/
class serverrec : public connection
{
private:
public:
/** server name
*/
char name[MAXBUF];
/** last ping response (ms)
*/
long pingtime;
/** invisible users on server
*/
long usercount_i;
/** non-invisible users on server
*/
long usercount;
/** opers on server
*/
long opercount;
/** number of hops away (for quick access)
*/
int hops_away;
/** ircd version
*/
long version;
/** is a JUPE server (faked to enforce a server ban)
*/
bool jupiter;
/** Constructor
*/
serverrec();
/** Constructor which initialises some of the main variables
*/
serverrec(char* n, long ver, bool jupe);
/** Destructor
*/
~serverrec();
};
#endif