mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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
63 lines
971 B
C++
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
|
|
|