int WorldSocketMgr::StartNetwork (ACE_UINT16 port, std::string& address)
{
    if (!sLog.HasLogLevelOrHigher(LOG_LVL_DEBUG))
        ACE_Log_Msg::instance()->priority_mask (LM_ERROR, ACE_Log_Msg::PROCESS);

    if (StartReactiveIO (port, address.c_str()) == -1)
        return -1;

    return 0;
}
Beispiel #2
0
int WorldSocketMgr::StartNetwork(ACE_UINT16 port, std::string& address)
{
    if (!sLog.IsOutDebug ())
        ACE_Log_Msg::instance()->priority_mask (LM_ERROR, ACE_Log_Msg::PROCESS);

    if (StartReactiveIO (port, address.c_str()) == -1)
        return -1;

    return 0;
}
int WorldSocketMgr::StartNetwork(ACE_UINT16 port, const char* address) {
	if (!sLog->IsOutDebug())
		ACE_Log_Msg::instance()->priority_mask(LM_ERROR, ACE_Log_Msg::PROCESS);

	if (StartReactiveIO(port, address) == -1)
		return -1;

	sScriptMgr->OnNetworkStart();

	return 0;
}
int
WorldSocketMgr::StartNetwork (ACE_UINT16 port, const char* address)
{
    if (!sLog->ShouldLog(LOG_FILTER_GENERAL, LOG_LEVEL_DEBUG))
        ACE_Log_Msg::instance()->priority_mask (LM_ERROR, ACE_Log_Msg::PROCESS);

    if (StartReactiveIO(port, address) == -1)
        return -1;

    sScriptMgr->OnNetworkStart();

    return 0;
}