diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-01-26 23:53:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-01-26 23:53:03 +0000 |
commit | f81a2e12b09634cacd4ccf9da584c835ee71bf24 (patch) | |
tree | 7772d7719b6b369bd618eafb8f4b926d21192dcc /include/servers.h | |
parent | 767b12b0ab6a0d4ed5f7335b26d1c0f842d99543 (diff) |
Modified documentation for base classes
Added base classes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@151 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/servers.h')
-rw-r--r-- | include/servers.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/include/servers.h b/include/servers.h index e62f4d3fa..b6e10f91d 100644 --- a/include/servers.h +++ b/include/servers.h @@ -1,6 +1,10 @@ /* $Log$ +Revision 1.2 2003/01/26 23:52:59 brain +Modified documentation for base classes +Added base classes + Revision 1.1 2003/01/26 20:15:00 brain Added server classes for linking @@ -8,7 +12,9 @@ Added server classes for linking */ #include "inspircd_config.h" +#include "connection.h" #include <string> +#include <map.h> #ifndef __SERVERS_H__ #define __SERVERS_H__ @@ -16,12 +22,10 @@ Added server classes for linking #define LINK_ACTIVE 1 #define LINK_INACTIVE 0 -typedef vector<serverrec*> server_list; - -class serverrec +class serverrec : public connection { private: - server_list leaf; // list of child servers (leaves) + map<string, serverrec*> leaf; // list of child servers (leaves) public: char name[MAXBUF]; // server name int pingtime; // last ping response (ms) @@ -37,11 +41,14 @@ class serverrec serverrec(); serverrec(char* n, int link_t, long ver, bool jupe); - ~serverrec() + ~serverrec(); void AddLeaf(serverrec *child); - void DelLeaf(char* n); + void DelLeaf(string n); }; + +typedef map<string, serverrec*> server_list; + #endif |