]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/connection.h
Added some netsplit handling stuff (untested)
[user/henk/code/inspircd.git] / include / connection.h
index 954cc919bd7838995ffa942795098af5e369b796..3316bd6c0fd09a8f7546f4c3299edbe31aa1214a 100644 (file)
@@ -48,12 +48,6 @@ class ircd_connector : public classbase
         */
        std::string description;
        
-       /** Server names of servers that this server is linked to
-        * So for A->B->C, if this was the record for B it would contain A and C
-        * whilever both servers are connected to B.
-        */
-       std::vector<std::string> routes;
-       
        /** State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND
         * STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTED
         */
@@ -65,6 +59,12 @@ class ircd_connector : public classbase
        char host[MAXBUF];
        int port;
        
+       /** Server names of servers that this server is linked to
+        * So for A->B->C, if this was the record for B it would contain A and C
+        * whilever both servers are connected to B.
+        */
+       std::vector<std::string> routes;
+       
  
        bool MakeOutboundConnection(char* host, int port);
        std::string GetServerName();
@@ -78,6 +78,7 @@ class ircd_connector : public classbase
        void SetDescription(std::string desc);
        int GetServerPort();
        bool SetHostAndPort(char* host, int port);
+       void CloseConnection();
 };