mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
Working on login / world connection mostly there, fixed a few crashes with encryption on 0 length packets
This commit is contained in:
@@ -152,6 +152,15 @@ void DumpPacket(const ServerPacket* pack, bool iShowInfo) {
|
||||
DumpPacketHex(pack->pBuffer, pack->size);
|
||||
}
|
||||
|
||||
void DumpPacket(uint16 opcode, const EQ::Net::Packet &p, bool iShowInfo) {
|
||||
if (iShowInfo) {
|
||||
std::cout << "Dumping ServerPacket: 0x" << std::hex << std::setfill('0') << std::setw(4) << opcode << std::dec;
|
||||
std::cout << " size:" << p.Length() << std::endl;
|
||||
}
|
||||
|
||||
std::cout << p.ToString() << std::endl;
|
||||
}
|
||||
|
||||
void DumpPacketBin(const ServerPacket* pack) {
|
||||
DumpPacketBin(pack->pBuffer, pack->size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user