[8389] Implement check really read received packet size and warning it not all data...
commit6e52ac5ffd172f85df6939774246f2c2e44844a9
authorVladimirMangos <vladimir@getmangos.com>
Tue, 18 Aug 2009 19:11:11 +0000 (18 23:11 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Tue, 18 Aug 2009 20:45:24 +0000 (19 00:45 +0400)
tree7f863b52c32bfba30712a17f692d781da8336bbc
parent6bcdf0412cbeb4d071c80bfc66525794613e1561
[8389] Implement check really read received packet size and warning it not all data read.

* This let more easy catch packet structure chnages at client switch.
* Fixed structure CMSG_GUILD_BANK_SWAP_ITEMS
* Fixed structure CMSG_SPLIT_ITEM, CMSG_SELL_ITEM
* Added read data amount fixes for some other packets.

Thanks to TOM_RUS in help check correct packets structure.

Note: not all packets possible fixed. Please report for not fixed cases at errors:
"opcode %s (0x%.4X) have unprocessed tail data (read stop at %u from %u)"
12 files changed:
src/game/AuctionHouseHandler.cpp
src/game/CalendarHandler.cpp
src/game/GMTicketHandler.cpp
src/game/GuildHandler.cpp
src/game/ItemHandler.cpp
src/game/MiscHandler.cpp
src/game/VoiceChatHandler.cpp
src/game/WorldSession.cpp
src/game/WorldSession.h
src/game/WorldSocket.cpp
src/shared/ByteBuffer.h
src/shared/revision_nr.h