Add spaces after commas
This commit is contained in:
1 parent
01a79947d5
commit
1003f30448
645 files changed
+9439
-9439
No files matched your search
@@ -48,7 +48,7 @@
|
||||
#if defined(__GNUC__)
|
||||
#pragma pack(1)
|
||||
#else
|
||||
#pragma pack(push,1)
|
||||
#pragma pack(push, 1)
|
||||
#endif
|
||||
|
||||
struct ServerPktHeader
|
||||
@@ -206,7 +206,7 @@ int WorldSocket::SendPacket (const WorldPacket& pct)
|
||||
if (!pct.empty())
|
||||
mb->copy((const char*)pct.contents(), pct.size());
|
||||
|
||||
if (msg_queue()->enqueue_tail(mb,(ACE_Time_Value*)&ACE_Time_Value::zero) == -1)
|
||||
if (msg_queue()->enqueue_tail(mb, (ACE_Time_Value*)&ACE_Time_Value::zero) == -1)
|
||||
{
|
||||
sLog->outError("WorldSocket::SendPacket enqueue_tail failed");
|
||||
mb->release();
|
||||
@@ -309,7 +309,7 @@ int WorldSocket::handle_input (ACE_HANDLE)
|
||||
if ((errno == EWOULDBLOCK) ||
|
||||
(errno == EAGAIN))
|
||||
{
|
||||
return Update(); // interesting line ,isn't it ?
|
||||
return Update(); // interesting line , isn't it ?
|
||||
}
|
||||
|
||||
sLog->outStaticDebug("WorldSocket::handle_input: Peer error closing connection errno = %s", ACE_OS::strerror (errno));
|
||||
@@ -598,7 +598,7 @@ int WorldSocket::handle_input_missing_data (void)
|
||||
|
||||
// Its possible on some error situations that this happens
|
||||
// for example on closing when epoll receives more chunked data and stuff
|
||||
// hope this is not hack ,as proper m_RecvWPct is asserted around
|
||||
// hope this is not hack , as proper m_RecvWPct is asserted around
|
||||
if (!m_RecvWPct)
|
||||
{
|
||||
sLog->outError ("Forcing close on input m_RecvWPct = NULL");
|
||||
@@ -721,7 +721,7 @@ int WorldSocket::ProcessIncoming (WorldPacket* new_pct)
|
||||
sScriptMgr->OnPacketReceive(this, WorldPacket(*new_pct));
|
||||
return HandleAuthSession (*new_pct);
|
||||
case CMSG_KEEP_ALIVE:
|
||||
sLog->outStaticDebug ("CMSG_KEEP_ALIVE ,size: " UI64FMTD, uint64(new_pct->size()));
|
||||
sLog->outStaticDebug ("CMSG_KEEP_ALIVE , size: " UI64FMTD, uint64(new_pct->size()));
|
||||
sScriptMgr->OnPacketReceive(this, WorldPacket(*new_pct));
|
||||
return 0;
|
||||
default:
|
||||
@@ -734,7 +734,7 @@ int WorldSocket::ProcessIncoming (WorldPacket* new_pct)
|
||||
// Catches people idling on the login screen and any lingering ingame connections.
|
||||
m_Session->ResetTimeOutTime();
|
||||
|
||||
// OK ,give the packet to WorldSession
|
||||
// OK , give the packet to WorldSession
|
||||
aptr.release();
|
||||
// WARNINIG here we call it with locks held.
|
||||
// Its possible to cause deadlock if QueuePacket calls back
|
||||
@@ -860,7 +860,7 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
|
||||
const char* sStr = s.AsHexStr(); //Must be freed by OPENSSL_free()
|
||||
const char* vStr = v.AsHexStr(); //Must be freed by OPENSSL_free()
|
||||
|
||||
sLog->outStaticDebug ("WorldSocket::HandleAuthSession: (s,v) check s: %s v: %s",
|
||||
sLog->outStaticDebug ("WorldSocket::HandleAuthSession: (s, v) check s: %s v: %s",
|
||||
sStr,
|
||||
vStr);
|
||||
|
||||
@@ -1058,7 +1058,7 @@ int WorldSocket::HandlePing (WorldPacket& recvPacket)
|
||||
else
|
||||
{
|
||||
sLog->outError ("WorldSocket::HandlePing: peer sent CMSG_PING, "
|
||||
"but is not authenticated or got recently kicked,"
|
||||
"but is not authenticated or got recently kicked, "
|
||||
" address = %s",
|
||||
GetRemoteAddress().c_str());
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user