#include "inspircd.h"
#include "exitcodes.h"
-#include <sys/epoll.h>
+#include <port.h>
#include "socketengine_ports.h"
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)