]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspsocket.h
Experimental WSAPoll (thanks for not just using poll(), guys) support for Windows...
[user/henk/code/inspircd.git] / include / inspsocket.h
index f945c4f9ddba6a40e739ff95da7fcc7b24482a51..13dacc90bb229b3714d79ff73c06fef75c38287e 100644 (file)
@@ -116,10 +116,6 @@ class CoreExport BufferedSocket : public EventHandler
         */
        SocketTimeout* Timeout;
 
-       /** Timeout length
-        */
-       unsigned long timeout_val;
-
        /** Socket output buffer (binary safe)
         */
        std::deque<std::string> outbuffer;
@@ -351,8 +347,9 @@ class CoreExport BufferedSocket : public EventHandler
        /**
         * This method attempts to connect to a hostname.
         * This method is asyncronous.
+        * @param maxtime Number of seconds to wait, if connecting, before the connection times out and an OnTimeout() event is generated
         */
-       virtual bool DoConnect();
+       virtual bool DoConnect(unsigned long maxtime);
 
        /** Handle event from EventHandler parent class
         */