Implement Packet logs with dumps

- Category: 41: Packet: Server -> Client With Dump
	- Category: 42: Packet: Server -> Client With Dump
	See: http://wiki.eqemulator.org/p?Logging_System_Overhaul#packet-logging-levels
This commit is contained in:
Akkadius
2015-02-02 00:10:22 -06:00
parent e1c49f93e2
commit f2667cee23
9 changed files with 29 additions and 12 deletions
+1 -5
View File
@@ -511,12 +511,8 @@ void DumpPacket(const EQApplicationPacket* app, bool iShowInfo) {
// DumpPacketAscii(app->pBuffer, app->size);
}
std::string DumpPacketToString(const EQApplicationPacket* app, bool iShowInfo){
std::string DumpPacketToString(const EQApplicationPacket* app){
std::ostringstream out;
if (iShowInfo) {
out << "Dumping Applayer: 0x" << std::hex << std::setfill('0') << std::setw(4) << app->GetOpcode() << std::dec;
out << " size:" << app->size << std::endl;
}
out << DumpPacketHexToString(app->pBuffer, app->size);
return out.str();
}