Net: Log sent and received game packets with type and status names

This commit is contained in:
Jonathan G Rennison
2021-05-21 01:40:00 +01:00
parent 7677d2d01a
commit 6d58115458
8 changed files with 117 additions and 3 deletions

View File

@@ -129,6 +129,8 @@ enum PacketGameType {
PACKET_END, ///< Must ALWAYS be on the end of this list!! (period)
};
const char *GetPacketTypeName(PacketGameType type);
/** Packet that wraps a command */
struct CommandPacket;
@@ -584,6 +586,7 @@ public:
void SendCommand(Packet *p, const CommandPacket *cp);
virtual std::string GetDebugInfo() const;
virtual void LogSentPacket(const Packet &pkt);
};
#endif /* NETWORK_CORE_TCP_GAME_H */