diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/inspsocket.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h index 1b9947ef9..077f20a65 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -27,13 +27,15 @@ /** * States which a socket may be in */ -enum InspSocketState { I_DISCONNECTED, I_RESOLVING, I_CONNECTING, I_CONNECTED, I_LISTENING, I_ERROR }; +enum InspSocketState { I_DISCONNECTED, I_CONNECTING, I_CONNECTED, I_LISTENING, I_ERROR }; /** * Error types which a socket may exhibit */ enum InspSocketError { I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND, I_ERR_RESOLVE, I_ERR_WRITE }; +class InspSocket; + /** * InspSocket is an extendable socket class which modules * can use for TCP socket support. It is fully integrated @@ -47,7 +49,7 @@ enum InspSocketError { I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND, I */ class InspSocket : public Extensible { -protected: + public: std::deque<std::string> outbuffer; @@ -163,8 +165,6 @@ protected: bool BindAddr(); -public: - /** * The default constructor does nothing * and should not be used. @@ -349,14 +349,6 @@ public: virtual ~InspSocket(); /** - * This method attempts to resolve the hostname, - * if a hostname is given and not an IP, - * before a connection can occur. This method is - * asyncronous. - */ - virtual bool DoResolve(); - - /** * This method attempts to connect to a hostname. * This only occurs on a non-listening socket. This * method is asyncronous. |