Changeset 232 for trunk/src/game/WorldSocket.cpp
- Timestamp:
- 11/19/08 13:48:57 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/WorldSocket.cpp
r229 r232 463 463 if (m_Header.space () > 0) 464 464 { 465 //need to rec ieve the header465 //need to receive the header 466 466 const size_t to_header = (message_block.length () > m_Header.space () ? m_Header.space () : message_block.length ()); 467 467 m_Header.copy (message_block.rd_ptr (), to_header); … … 470 470 if (m_Header.space () > 0) 471 471 { 472 // couldn't recieve the whole header this time472 // Couldn't receive the whole header this time 473 473 ACE_ASSERT (message_block.length () == 0); 474 474 errno = EWOULDBLOCK; … … 476 476 } 477 477 478 // we just recieved nice new header478 // We just received nice new header 479 479 if (handle_input_header () == -1) 480 480 { … … 485 485 486 486 // Its possible on some error situations that this happens 487 // for example on closing when epoll rec ieves more chunked data and stuff487 // for example on closing when epoll receives more chunked data and stuff 488 488 // hope this is not hack ,as proper m_RecvWPct is asserted around 489 489 if (!m_RecvWPct) 490 490 { 491 sLog.outError ("For sing close on input m_RecvWPct = NULL");491 sLog.outError ("Forcing close on input m_RecvWPct = NULL"); 492 492 errno = EINVAL; 493 493 return -1; 494 494 } 495 495 496 // We have full read edheader, now check the data payload496 // We have full read header, now check the data payload 497 497 if (m_RecvPct.space () > 0) 498 498 { … … 504 504 if (m_RecvPct.space () > 0) 505 505 { 506 //couldn't rec ieve the whole data this time506 //couldn't receive the whole data this time 507 507 ACE_ASSERT (message_block.length () == 0); 508 508 errno = EWOULDBLOCK; … … 511 511 } 512 512 513 //just rec ieved fresh new payload513 //just received fresh new payload 514 514 if (handle_input_payload () == -1) 515 515 { … … 573 573 return -1; 574 574 575 // dump recieved packet575 // Dump received packet 576 576 if (sWorldLog.LogWorld ()) 577 577 { … … 638 638 int WorldSocket::HandleAuthSession (WorldPacket& recvPacket) 639 639 { 640 // NOTE: ATM the socket is singlethread ed, have this in mind ...640 // NOTE: ATM the socket is singlethread, have this in mind ... 641 641 uint8 digest[20]; 642 642 uint32 clientSeed; … … 930 930 { 931 931 sLog.outError ("WorldSocket::HandlePing: Player kicked for " 932 "over speeded pings adress = %s",932 "over-speed pings address = %s", 933 933 GetRemoteAddress ().c_str ()); 934 934 … … 951 951 sLog.outError ("WorldSocket::HandlePing: peer sent CMSG_PING, " 952 952 "but is not authenticated or got recently kicked," 953 " ad ress = %s",953 " address = %s", 954 954 GetRemoteAddress ().c_str ()); 955 955 return -1;