Backported AsyncAcceptor generalization to authserver

This commit is contained in:
leak
2014-07-02 18:05:30 +02:00
parent 310f5e6846
commit c31c6f3ba3
4 changed files with 4 additions and 83 deletions

View File

@@ -39,7 +39,8 @@
#include "SystemConfig.h"
#include "Util.h"
#include "RealmList.h"
#include "AuthServer.h"
#include "AsyncAcceptor.h"
#include "AuthSession.h"
#ifdef __linux__
@@ -170,7 +171,7 @@ int main(int argc, char** argv)
std::string bindIp = sConfigMgr->GetStringDefault("BindIP", "0.0.0.0");
AuthServer authServer(_ioService, bindIp, port);
AsyncAcceptor<AuthSession> authServer(_ioService, bindIp, port);
// Set signal handlers
boost::asio::signal_set signals(_ioService, SIGINT, SIGTERM);