summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/socketengine.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 967c0967b..41cd459d8 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -19,6 +19,18 @@
#include <vector>
#include <string>
+#include "inspircd_config.h"
+#include "globals.h"
+#include "inspircd.h"
+#ifdef USE_EPOLL
+#include <sys/epoll.h>
+#define EP_DELAY 5
+#endif
+#ifdef USE_KQUEUE
+#include <sys/types.h>
+#include <sys/event.h>
+#include <sys/time.h>
+#endif
class SocketEngine {
@@ -39,9 +51,9 @@ public:
SocketEngine();
~SocketEngine();
- bool AddFd(int fd, bool readable, bool writeable, char type);
+ bool AddFd(int fd, bool readable, char type);
bool DelFd(int fd);
- bool Wait(unsigned long millisecs, std::vector<int> &fdlist);
+ bool Wait(std::vector<int> &fdlist);
std::string GetName();
};