]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/connection.h
Removed __single_client_alloc again because gcc devs were smoking crack and removed it
[user/henk/code/inspircd.git] / include / connection.h
index b9be696fe2ba6a66a9217d59d81788ee06eb1ece..b84d39df9b42b623270980d91dfd2601eae94696 100644 (file)
@@ -39,6 +39,8 @@
 #define STATE_NOAUTH_OUTBOUND  4
 #define STATE_SERVICES         5
 
+std::string CreateSum();
+
 /** Each connection has one or more of these
  * each represents ONE outbound connection to another ircd
  * so each inbound has multiple outbounds. A listening socket
@@ -73,7 +75,7 @@ class ircd_connector : public Extensible
        /** State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND
         * STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTED
         */
-       int state;
+       char state;
        
        /** PRIVATE function to set the host address and port to connect to
         */
@@ -250,7 +252,7 @@ class connection : public Extensible
        
        /** Used by userrec to indicate the registration status of the connection
         */
-       short int registered;
+       char registered;
        
        /** Time the connection was last pinged
         */
@@ -268,10 +270,6 @@ class connection : public Extensible
         */
        time_t nping;
        
-       //char internal_addr[MAXBUF];
-       
-       //int internal_port;
-
        /** With a serverrec, this is a list of all established server connections.
         * With a userrec this is unused.
         */
@@ -306,7 +304,7 @@ class connection : public Extensible
         * If no data is available this function returns false.
         * This function will automatically close broken links and reroute pathways, generating split messages on the network.
         */
-       bool RecvPacket(std::deque<std::string> &messages, char* host);
+       bool RecvPacket(std::deque<std::string> &messages, char* host, std::deque<std::string> &sums);
        
        /** Find the ircd_connector oject related to a certain servername given in 'host'
         */