#include <client.h>
Public Member Functions | |
PacketCounter ()=default | |
void | add (u16 command) |
void | clear () |
u32 | sum () const |
void | print (std::ostream &o) const |
Private Attributes | |
std::map< u16, u32 > | m_packets |
|
default |
|
inline |
References m_packets.
Referenced by Client::ProcessData().
|
inline |
void PacketCounter::print | ( | std::ostream & | o | ) | const |
References m_packets, ToClientCommandHandler::name, TOCLIENT_NUM_MSG_TYPES, and toClientCommandTable.
Referenced by Client::step().
u32 PacketCounter::sum | ( | ) | const |
|
private |