]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengines/socketengine_ports.cpp
m_xline_db Don't flush database when an xline expires
[user/henk/code/inspircd.git] / src / socketengines / socketengine_ports.cpp
index c6ddb041cb7e746cf5990e2703d1802949e5c47f..d94d02664f1b5597d0c2b4b89c9e0f47643054b0 100644 (file)
 # error You need Solaris 10 or later to make use of this code.
 #endif
 
-#include <vector>
-#include <string>
-#include <map>
 #include "inspircd.h"
-#include "socketengine.h"
 #include <port.h>
 #include <iostream>
 #include <ulimit.h>
@@ -164,14 +160,14 @@ int SocketEngine::DispatchEvents()
                if (portev_events & POLLRDNORM)
                {
                        stats.ReadEvents++;
-                       eh->HandleEvent(EVENT_READ);
+                       eh->OnEventHandlerRead();
                        if (eh != GetRef(fd))
                                continue;
                }
                if (portev_events & POLLWRNORM)
                {
                        stats.WriteEvents++;
-                       eh->HandleEvent(EVENT_WRITE);
+                       eh->OnEventHandlerWrite();
                }
        }