diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-19 12:51:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-19 12:51:21 +0000 |
commit | 3a6885d6a1d30f6e2eb9b1fcd20e949768267318 (patch) | |
tree | fefc6fb26bf91713479e47261775651c927b1441 /src/inspircd.cpp | |
parent | e8c920ce01a47e7b05ca3d445c3d8d88f9c70e37 (diff) |
* Seperate out socket engines into derived classes of SocketEngine.
* Add a classfactory SocketEngineFactory to create a new socketengine of the configured type
* Implement configure hax to compile only the required socketengine and the base class
* Eliminates ugly defines, and is more in line with C++ ways
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a6106a787..2f08750bd 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -63,6 +63,7 @@ #include "helperfuncs.h" #include "hashcomp.h" #include "socketengine.h" +#include "inspircd_se_config.h" #include "userprocess.h" #include "socket.h" #include "typedefs.h" @@ -323,7 +324,9 @@ InspIRCd::InspIRCd(int argc, char** argv) /* Because of limitations in kqueue on freebsd, we must fork BEFORE we * initialize the socket engine. */ - SE = new SocketEngine(); + SocketEngineFactory* SEF = new SocketEngineFactory(); + SE = SEF->Create(); + delete SEF; /* We must load the modules AFTER initializing the socket engine, now */ |