Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr)

This commit is contained in:
Shauren
2017-05-21 23:18:43 +02:00
parent 3cb8f532da
commit 3d7c2ef88f
101 changed files with 1048 additions and 826 deletions

View File

@@ -282,6 +282,7 @@ extern int main(int argc, char** argv)
// Launch the worldserver listener socket
uint16 worldPort = uint16(sWorld->getIntConfig(CONFIG_PORT_WORLD));
uint16 instancePort = uint16(sWorld->getIntConfig(CONFIG_PORT_INSTANCE));
std::string worldListener = sConfigMgr->GetStringDefault("BindIP", "0.0.0.0");
int networkThreads = sConfigMgr->GetIntDefault("Network.Threads", 1);
@@ -292,7 +293,7 @@ extern int main(int argc, char** argv)
return 1;
}
if (!sWorldSocketMgr.StartNetwork(*ioService, worldListener, worldPort, networkThreads))
if (!sWorldSocketMgr.StartWorldNetwork(*ioService, worldListener, worldPort, instancePort, networkThreads))
{
TC_LOG_ERROR("server.worldserver", "Failed to initialize network");
return 1;