summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-19 13:29:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-19 13:29:06 +0000
commit40b67389a9ac1ef3f37ce93dd95e76c474edd511 (patch)
tree5bb73018ab2a1ea2ddb56c68840de71da5bfe1a9
parent4f5ef4c1ae94f66b89e04e5b4f246103abed8332 (diff)
Add #include <sys/select.h> to select engine, we probably need it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4443 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/socketengine.h9
-rw-r--r--include/socketengine_select.h1
-rw-r--r--src/socketengine_select.cpp1
3 files changed, 11 insertions, 0 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 734aa1938..c3e6e2498 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -55,6 +55,15 @@ const char X_READBIT = 0x80;
* from system to system and upon the config
* settings chosen by the server admin. The current
* version supports select, epoll and kqueue.
+ * The configure script will enable a socket engine
+ * based upon what OS is detected, and will derive
+ * a class from SocketEngine based upon what it finds.
+ * The derived classes file will also implement a
+ * classfactory, SocketEngineFactory, which will
+ * create a derived instance of SocketEngine using
+ * polymorphism so that the core and modules do not
+ * have to be aware of which SocketEngine derived
+ * class they are using.
*/
class SocketEngine : public Extensible
{
diff --git a/include/socketengine_select.h b/include/socketengine_select.h
index bbd9b78dd..442f8c754 100644
--- a/include/socketengine_select.h
+++ b/include/socketengine_select.h
@@ -20,6 +20,7 @@
#include <vector>
#include <string>
#include <map>
+#include <sys/select.h>
#include "inspircd_config.h"
#include "globals.h"
#include "inspircd.h"
diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp
index 8d77da461..f36c96379 100644
--- a/src/socketengine_select.cpp
+++ b/src/socketengine_select.cpp
@@ -19,6 +19,7 @@
#include "inspircd.h"
#include <vector>
#include <string>
+#include <sys/select.h>
#include "socketengine_select.h"
#include "helperfuncs.h"