]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspsocket.h
Document ListenSocket class
[user/henk/code/inspircd.git] / include / inspsocket.h
index ddb0baedb41074bda2571465fa321ac2b613a0a4..3791aa3e02cfb6ea05d0a5db3d26cb0ee15f18b0 100644 (file)
@@ -23,6 +23,7 @@
 #include "dns.h"
 #include "inspircd_config.h"
 #include "socket.h"
+#include "inspsocket.h"
 
 /**
  * States which a socket may be in
@@ -53,18 +54,13 @@ using irc::sockets::insp_aton;
  * and use the InspSocket constructors to establish connections
  * and bindings.
  */
-class InspSocket : public Extensible
+class InspSocket : public EventHandler
 {
  public:
        InspIRCd* Instance;
 
        std::deque<std::string> outbuffer;
 
-       /**
-        * The file descriptor of this socket
-        */
-        int fd;
-
        /**
         * The hostname connected to
         */
@@ -365,6 +361,10 @@ class InspSocket : public Extensible
         * memory reclaimed.
         */
        void MarkAsClosed();
+
+       void HandleEvent(EventType et);
+
+       bool Readable();
 };
 
 #endif