From 946e2d0ca679cca7e491c2e494c1c417ac27eceb Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 10 Sep 2014 21:17:55 +0200 Subject: Core/Authserver: Added missing auth socket manager Closes #13085 --- src/server/authserver/Main.cpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'src/server/authserver/Main.cpp') diff --git a/src/server/authserver/Main.cpp b/src/server/authserver/Main.cpp index 01dbaa6aa9a..5f08ebe3127 100644 --- a/src/server/authserver/Main.cpp +++ b/src/server/authserver/Main.cpp @@ -24,23 +24,21 @@ * authentication server */ -#include -#include -#include -#include -#include -#include - -#include "AsyncAcceptor.h" -#include "AuthSession.h" +#include "AuthSocketMgr.h" #include "Common.h" -#include "Configuration/Config.h" -#include "Database/DatabaseEnv.h" +#include "Config.h" +#include "DatabaseEnv.h" #include "Log.h" #include "ProcessPriority.h" #include "RealmList.h" #include "SystemConfig.h" #include "Util.h" +#include +#include +#include +#include +#include +#include using boost::asio::ip::tcp; using namespace boost::program_options; @@ -118,8 +116,8 @@ int main(int argc, char** argv) } std::string bindIp = sConfigMgr->GetStringDefault("BindIP", "0.0.0.0"); - AsyncAcceptor authServer(_ioService, bindIp, port); - authServer.AsyncAccept(); + + sAuthSocketMgr.StartNetwork(_ioService, bindIp, port); // Set signal handlers boost::asio::signal_set signals(_ioService, SIGINT, SIGTERM); -- cgit v1.2.3