]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspsocket.h
CPU Usage percent in stats z! yay!
[user/henk/code/inspircd.git] / include / inspsocket.h
index 31f147ab8ba821eddb3067c83eb083bbac9f4bb1..52de46c2da8a38309950a37fcd085c1c013e304a 100644 (file)
@@ -44,6 +44,8 @@ using irc::sockets::insp_inaddr;
 using irc::sockets::insp_ntoa;
 using irc::sockets::insp_aton;
 
+/** Used to time out socket connections
+ */
 class SocketTimeout : public InspTimer
 {
  private:
@@ -69,6 +71,9 @@ class SocketTimeout : public InspTimer
 class InspSocket : public EventHandler
 {
  public:
+
+       bool IsIOHooked;
+
        InspIRCd* Instance;
 
        SocketTimeout* Timeout;
@@ -363,7 +368,7 @@ class InspSocket : public EventHandler
         */
        void MarkAsClosed();
 
-       void HandleEvent(EventType et);
+       void HandleEvent(EventType et, int errornum = 0);
 
        bool Readable();
 };