diff options
author | Shauren <shauren.trinity@gmail.com> | 2014-09-10 21:17:55 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2014-09-10 21:17:55 +0200 |
commit | 946e2d0ca679cca7e491c2e494c1c417ac27eceb (patch) | |
tree | f32261814cda231fd33ca64c09253873cb36cf7f /src/server/authserver/Main.cpp | |
parent | afbb3f6ae563ad629d31271209b50b49f5326627 (diff) |
Core/Authserver: Added missing auth socket manager
Closes #13085
Diffstat (limited to 'src/server/authserver/Main.cpp')
-rw-r--r-- | src/server/authserver/Main.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
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 <cstdlib> -#include <boost/date_time/posix_time/posix_time.hpp> -#include <boost/program_options.hpp> -#include <iostream> -#include <openssl/opensslv.h> -#include <openssl/crypto.h> - -#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 <cstdlib> +#include <iostream> +#include <boost/date_time/posix_time/posix_time.hpp> +#include <boost/program_options.hpp> +#include <openssl/opensslv.h> +#include <openssl/crypto.h> 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<AuthSession>(); + + sAuthSocketMgr.StartNetwork(_ioService, bindIp, port); // Set signal handlers boost::asio::signal_set signals(_ioService, SIGINT, SIGTERM); |