Core/NetworkIO: Use reactor style sending on linux to reduce locking overhead

This commit is contained in:
Shauren
2014-09-09 19:19:25 +02:00
parent a2ba49afa4
commit e0ce4528c5
14 changed files with 890 additions and 307 deletions

View File

@@ -118,7 +118,8 @@ int main(int argc, char** argv)
}
std::string bindIp = sConfigMgr->GetStringDefault("BindIP", "0.0.0.0");
AsyncAcceptor<AuthSession> authServer(_ioService, bindIp, port);
AsyncAcceptor authServer(_ioService, bindIp, port);
authServer.AsyncAccept<AuthSession>();
// Set signal handlers
boost::asio::signal_set signals(_ioService, SIGINT, SIGTERM);