]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengine_ports.cpp
Split up spanningtree some more, the filenames should be more intuitive so that devel...
[user/henk/code/inspircd.git] / src / socketengine_ports.cpp
index 5a8c616a5b5566cd56202c36ea0fe6082b451402..352b730620fbc7d300eaadbe9e16eeffaef4189c 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "inspircd.h"
 #include "exitcodes.h"
-#include <sys/epoll.h>
+#include <port.h>
 #include "socketengine_ports.h"
 
 PortsEngine::PortsEngine(InspIRCd* Instance) : SocketEngine(Instance)
@@ -26,14 +26,14 @@ PortsEngine::PortsEngine(InspIRCd* Instance) : SocketEngine(Instance)
                ServerInstance->Log(SPARSE,"ERROR: This is a fatal error, exiting now.");
                printf("ERROR: Could not initialize socket engine: %s\n", strerror(errno));
                printf("ERROR: This is a fatal error, exiting now.\n");
-               InspIRCd::Exit(EXIT_STATUS_SOCKETENGINE);
+               ServerInstance->Exit(EXIT_STATUS_SOCKETENGINE);
        }
        CurrentSetSize = 0;
 }
 
 PortsEngine::~PortsEngine()
 {
-       close(EngineHandle);
+       this->Close(EngineHandle);
 }
 
 bool PortsEngine::AddFd(EventHandler* eh)