Configuration/ConfigMgr: converted from singleton to namespace with free functions.

This commit is contained in:
Spp committed 2011-09-28 13:00:43 +02:00
1 parent 71228f90bb
commit be12603150
15 files changed
+447 -457

No files matched your search

@@ -61,13 +61,13 @@ RARunnable::~RARunnable()
void RARunnable::run()
{
if (!sConfig->GetBoolDefault("Ra.Enable", false))
if (!ConfigMgr::GetBoolDefault("Ra.Enable", false))
return;
ACE_Acceptor<RASocket, ACE_SOCK_ACCEPTOR> acceptor;
uint16 raport = sConfig->GetIntDefault("Ra.Port", 3443);
std::string stringip = sConfig->GetStringDefault("Ra.IP", "0.0.0.0");
uint16 raport = ConfigMgr::GetIntDefault("Ra.Port", 3443);
std::string stringip = ConfigMgr::GetStringDefault("Ra.IP", "0.0.0.0");
ACE_INET_Addr listen_addr(raport, stringip.c_str());