]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socket.h
Changed m_sqlauth to allow more advanced encryption types
[user/henk/code/inspircd.git] / include / socket.h
index 43ed322bc26cd100f31c2ee687cd5807a53eef84..584c37b939e7a000957ce4c514323ec2c62434f5 100644 (file)
@@ -23,6 +23,7 @@
 #include <sstream>
 #include <string>
 #include "dns.h"
+#include <deque>
 
 /**
  * States which a socket may be in
@@ -32,7 +33,7 @@ enum InspSocketState { I_DISCONNECTED, I_RESOLVING, I_CONNECTING, I_CONNECTED, I
 /**
  * Error types which a socket may exhibit
  */
-enum InspSocketError { I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND, I_ERR_RESOLVE };
+enum InspSocketError { I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND, I_ERR_RESOLVE, I_ERR_WRITE };
 
 /**
  * InspSocket is an extendable socket class which modules
@@ -114,7 +115,7 @@ private:
        /**
         * The output buffer for this socket
         */
-       std::string Buffer;
+       std::deque<std::string> outbuffer;
 
        /**
         * The IP address being connected
@@ -143,7 +144,9 @@ private:
 
        /** Flushes the write buffer
         */
-       void FlushWriteBuffer();
+       bool FlushWriteBuffer();
+
+       void SetQueues(int nfd);
 
 public: