diff options
-rw-r--r-- | include/socketengine.h | 9 | ||||
-rw-r--r-- | include/socketengine_select.h | 1 | ||||
-rw-r--r-- | src/socketengine_select.cpp | 1 |
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" |