]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socketengine_select.h
More docs. Tons more docs. I need coffee and we're out of coffee :<
[user/henk/code/inspircd.git] / include / socketengine_select.h
index bbd9b78dda56acc313d9af4dcd85e488088ba033..b3f7479eeda5b9ab2b9ea929dfec39fdc9c07715 100644 (file)
 #include <vector>
 #include <string>
 #include <map>
+#include <sys/select.h>
 #include "inspircd_config.h"
 #include "globals.h"
 #include "inspircd.h"
 #include "socketengine.h"
 
+class InspIRCd;
+
 class SelectEngine : public SocketEngine
 {
 private:
        std::map<int,int> fds;          /* List of file descriptors being monitored */
        fd_set wfdset, rfdset;          /* Readable and writeable sets for select() */
 public:
-       SelectEngine();
+       SelectEngine(InspIRCd* Instance);
        virtual ~SelectEngine();
        virtual bool AddFd(int fd, bool readable, char type);
        virtual int GetMaxFds();
@@ -44,7 +47,7 @@ public:
 class SocketEngineFactory
 {
 public:
-       SocketEngine* Create() { return new SelectEngine(); }
+       SocketEngine* Create(InspIRCd* Instance) { return new SelectEngine(InspIRCd* Instance); }
 };
 
 #endif