Configuration/ConfigMgr: converted from singleton to namespace with free functions.
This commit is contained in:
1 parent
71228f90bb
commit
be12603150
15 files changed
+447
-457
No files matched your search
@@ -230,9 +230,9 @@ WorldSocketMgr::~WorldSocketMgr()
|
||||
int
|
||||
WorldSocketMgr::StartReactiveIO (ACE_UINT16 port, const char* address)
|
||||
{
|
||||
m_UseNoDelay = sConfig->GetBoolDefault ("Network.TcpNodelay", true);
|
||||
m_UseNoDelay = ConfigMgr::GetBoolDefault ("Network.TcpNodelay", true);
|
||||
|
||||
int num_threads = sConfig->GetIntDefault ("Network.Threads", 1);
|
||||
int num_threads = ConfigMgr::GetIntDefault ("Network.Threads", 1);
|
||||
|
||||
if (num_threads <= 0)
|
||||
{
|
||||
@@ -247,9 +247,9 @@ WorldSocketMgr::StartReactiveIO (ACE_UINT16 port, const char* address)
|
||||
sLog->outBasic ("Max allowed socket connections %d", ACE::max_handles());
|
||||
|
||||
// -1 means use default
|
||||
m_SockOutKBuff = sConfig->GetIntDefault ("Network.OutKBuff", -1);
|
||||
m_SockOutKBuff = ConfigMgr::GetIntDefault ("Network.OutKBuff", -1);
|
||||
|
||||
m_SockOutUBuff = sConfig->GetIntDefault ("Network.OutUBuff", 65536);
|
||||
m_SockOutUBuff = ConfigMgr::GetIntDefault ("Network.OutUBuff", 65536);
|
||||
|
||||
if (m_SockOutUBuff <= 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user