Core/Misc: Replace ACE_UINT* to uint* (#1628)
* Core/Common: Replace ACE_UINT* to uint* * #include "Common.h"
This commit is contained in:
@@ -662,7 +662,7 @@ int WorldSocket::ProcessIncoming(WorldPacket* new_pct)
|
||||
// manage memory ;)
|
||||
ACE_Auto_Ptr<WorldPacket> aptr (new_pct);
|
||||
|
||||
const ACE_UINT16 opcode = new_pct->GetOpcode();
|
||||
const uint16 opcode = new_pct->GetOpcode();
|
||||
|
||||
if (closing_)
|
||||
return -1;
|
||||
|
||||
@@ -220,7 +220,7 @@ WorldSocketMgr::~WorldSocketMgr()
|
||||
}
|
||||
|
||||
int
|
||||
WorldSocketMgr::StartReactiveIO (ACE_UINT16 port, const char* address)
|
||||
WorldSocketMgr::StartReactiveIO (uint16 port, const char* address)
|
||||
{
|
||||
m_UseNoDelay = sConfigMgr->GetBoolDefault ("Network.TcpNodelay", true);
|
||||
|
||||
@@ -266,7 +266,7 @@ WorldSocketMgr::StartReactiveIO (ACE_UINT16 port, const char* address)
|
||||
}
|
||||
|
||||
int
|
||||
WorldSocketMgr::StartNetwork (ACE_UINT16 port, const char* address)
|
||||
WorldSocketMgr::StartNetwork (uint16 port, const char* address)
|
||||
{
|
||||
if (!sLog->IsOutDebug())
|
||||
ACE_Log_Msg::instance()->priority_mask (LM_ERROR, ACE_Log_Msg::PROCESS);
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#ifndef __WORLDSOCKETMGR_H
|
||||
#define __WORLDSOCKETMGR_H
|
||||
|
||||
#include "Common.h"
|
||||
#include <ace/Basic_Types.h>
|
||||
#include <ace/Singleton.h>
|
||||
#include <ace/Thread_Mutex.h>
|
||||
@@ -29,7 +30,7 @@ public:
|
||||
friend class ACE_Singleton<WorldSocketMgr, ACE_Thread_Mutex>;
|
||||
|
||||
/// Start network, listen at address:port .
|
||||
int StartNetwork(ACE_UINT16 port, const char* address);
|
||||
int StartNetwork(uint16 port, const char* address);
|
||||
|
||||
/// Stops all network threads, It will wait for all running threads .
|
||||
void StopNetwork();
|
||||
@@ -40,7 +41,7 @@ public:
|
||||
private:
|
||||
int OnSocketOpen(WorldSocket* sock);
|
||||
|
||||
int StartReactiveIO(ACE_UINT16 port, const char* address);
|
||||
int StartReactiveIO(uint16 port, const char* address);
|
||||
|
||||
private:
|
||||
WorldSocketMgr();
|
||||
|
||||
Reference in New Issue
Block a user