From 3a6885d6a1d30f6e2eb9b1fcd20e949768267318 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 19 Jul 2006 12:51:21 +0000 Subject: * 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 --- src/inspircd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/inspircd.cpp') 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 */ -- cgit v1.3.1-10-gc9f91