mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Fixed english spelling in src/game/WorldSocket.h/cpp.
This commit is contained in:
parent
af556bae16
commit
d53b77cadf
2 changed files with 36 additions and 36 deletions
|
|
@ -261,7 +261,7 @@ int WorldSocket::handle_input (ACE_HANDLE)
|
|||
if ((errno == EWOULDBLOCK) ||
|
||||
(errno == EAGAIN))
|
||||
{
|
||||
return Update (); // interesting line ,isnt it ?
|
||||
return Update (); // interesting line ,isn't it ?
|
||||
}
|
||||
|
||||
DEBUG_LOG ("WorldSocket::handle_input: Peer error closing connection errno = %s", ACE_OS::strerror (errno));
|
||||
|
|
@ -460,20 +460,20 @@ int WorldSocket::handle_input_missing_data (void)
|
|||
{
|
||||
if (m_Header.space () > 0)
|
||||
{
|
||||
//need to recieve the header
|
||||
//need to receive the header
|
||||
const size_t to_header = (message_block.length () > m_Header.space () ? m_Header.space () : message_block.length ());
|
||||
m_Header.copy (message_block.rd_ptr (), to_header);
|
||||
message_block.rd_ptr (to_header);
|
||||
|
||||
if (m_Header.space () > 0)
|
||||
{
|
||||
//couldnt recieve the whole header this time
|
||||
// Couldn't receive the whole header this time.
|
||||
ACE_ASSERT (message_block.length () == 0);
|
||||
errno = EWOULDBLOCK;
|
||||
return -1;
|
||||
}
|
||||
|
||||
//we just recieved nice new header
|
||||
// We just received nice new header
|
||||
if (handle_input_header () == -1)
|
||||
{
|
||||
ACE_ASSERT ((errno != EWOULDBLOCK) && (errno != EAGAIN));
|
||||
|
|
@ -482,16 +482,16 @@ int WorldSocket::handle_input_missing_data (void)
|
|||
}
|
||||
|
||||
// Its possible on some error situations that this happens
|
||||
// for example on closing when epoll recieves more chunked data and stuff
|
||||
// for example on closing when epoll receives more chunked data and stuff
|
||||
// hope this is not hack ,as proper m_RecvWPct is asserted around
|
||||
if (!m_RecvWPct)
|
||||
{
|
||||
sLog.outError ("Forsing close on input m_RecvWPct = NULL");
|
||||
sLog.outError ("Forcing close on input m_RecvWPct = NULL");
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
// We have full readed header, now check the data payload
|
||||
// We have full read header, now check the data payload
|
||||
if (m_RecvPct.space () > 0)
|
||||
{
|
||||
//need more data in the payload
|
||||
|
|
@ -501,14 +501,14 @@ int WorldSocket::handle_input_missing_data (void)
|
|||
|
||||
if (m_RecvPct.space () > 0)
|
||||
{
|
||||
//couldnt recieve the whole data this time
|
||||
// Couldn't receive the whole data this time.
|
||||
ACE_ASSERT (message_block.length () == 0);
|
||||
errno = EWOULDBLOCK;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
//just recieved fresh new payload
|
||||
//just received fresh new payload
|
||||
if (handle_input_payload () == -1)
|
||||
{
|
||||
ACE_ASSERT ((errno != EWOULDBLOCK) && (errno != EAGAIN));
|
||||
|
|
@ -570,7 +570,7 @@ int WorldSocket::ProcessIncoming (WorldPacket* new_pct)
|
|||
if (closing_)
|
||||
return -1;
|
||||
|
||||
// dump recieved packet
|
||||
// Dump received packet.
|
||||
if (sWorldLog.LogWorld ())
|
||||
{
|
||||
sWorldLog.Log ("CLIENT:\nSOCKET: %u\nLENGTH: %u\nOPCODE: %s (0x%.4X)\nDATA:\n",
|
||||
|
|
@ -635,7 +635,7 @@ int WorldSocket::ProcessIncoming (WorldPacket* new_pct)
|
|||
|
||||
int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
|
||||
{
|
||||
// NOTE: ATM the socket is singlethreaded, have this in mind ...
|
||||
// NOTE: ATM the socket is singlethread, have this in mind ...
|
||||
uint8 digest[20];
|
||||
uint32 clientSeed;
|
||||
uint32 unk2;
|
||||
|
|
@ -924,7 +924,7 @@ int WorldSocket::HandlePing (WorldPacket& recvPacket)
|
|||
if (m_Session && m_Session->GetSecurity () == SEC_PLAYER)
|
||||
{
|
||||
sLog.outError ("WorldSocket::HandlePing: Player kicked for "
|
||||
"overspeeded pings adress = %s",
|
||||
"over-speed pings address = %s",
|
||||
GetRemoteAddress ().c_str ());
|
||||
|
||||
return -1;
|
||||
|
|
@ -945,7 +945,7 @@ int WorldSocket::HandlePing (WorldPacket& recvPacket)
|
|||
{
|
||||
sLog.outError ("WorldSocket::HandlePing: peer sent CMSG_PING, "
|
||||
"but is not authenticated or got recently kicked,"
|
||||
" adress = %s",
|
||||
" address = %s",
|
||||
GetRemoteAddress ().c_str ());
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue