6 #include "inspircd_config.h"
7 #include "connection.h"
15 #define LINK_INACTIVE 0
17 class serverrec : public connection
20 map<string, serverrec*> leaf; // list of child servers (leaves)
22 char name[MAXBUF]; // server name
23 int pingtime; // last ping response (ms)
24 int linktype; // link type, LINK_ACTIVE or LINK_INACTIVE
25 time_t lastping; // time the link was last pinged
26 long usercount_i; // invisible users on server
27 long usercount; // non-invisible users on server
28 long opercount; // opers on server
29 time_t connected_at; // time server was connected into the network
30 time_t hops_away; // number of hops away (for quick access)
31 long version; // ircd version
32 bool jupiter; // is a JUPE server (faked to enforce a server ban)
35 serverrec(char* n, int link_t, long ver, bool jupe);
37 void AddLeaf(serverrec *child);
38 void DelLeaf(string n);
43 typedef map<string, serverrec*> server_list;