ManaPlus
|
#include <packetcounters.h>
Public Member Functions | |
PacketCounters () | |
Static Public Member Functions | |
static void | incInBytes (const int cnt) |
static void | incInPackets () |
static int | getInBytes () |
static int | getInPackets () |
static void | incOutBytes (const int cnt) |
static void | incOutPackets () |
static int | getOutBytes () |
static int | getOutPackets () |
static void | update () |
Static Public Attributes | |
static int | mInCurrentSec = 0 |
static int | mInBytes = 0 |
static int | mInBytesCalc = 0 |
static int | mInPackets = 0 |
static int | mInPacketsCalc = 0 |
static int | mOutCurrentSec = 0 |
static int | mOutBytes = 0 |
static int | mOutBytesCalc = 0 |
static int | mOutPackets = 0 |
static int | mOutPacketsCalc = 0 |
Static Private Member Functions | |
static void | updateCounter (int ¤tSec, int &calc, int &counter) |
Definition at line 29 of file packetcounters.h.
|
inline |
Definition at line 32 of file packetcounters.h.
|
static |
Definition at line 66 of file packetcounters.cpp.
References mInBytesCalc.
Referenced by NetDebugTab::logic().
|
static |
|
static |
Definition at line 99 of file packetcounters.cpp.
References mOutBytesCalc.
Referenced by NetDebugTab::logic().
|
static |
|
static |
Definition at line 44 of file packetcounters.cpp.
References mInBytes, mInBytesCalc, mInCurrentSec, runCounters, and updateCounter().
Referenced by Net::MessageIn::readBytes(), Net::MessageIn::readCoordinatePair(), Net::MessageIn::readCoordinates(), Net::MessageIn::readFloat(), Net::MessageIn::readInt16(), Net::MessageIn::readInt32(), Net::MessageIn::readInt64(), Net::MessageIn::readInt8(), Net::MessageIn::readRawString(), Net::MessageIn::readString(), Net::MessageIn::readUInt16(), Net::MessageIn::readUInt32(), Net::MessageIn::readUInt8(), Net::MessageIn::skip(), and Net::MessageIn::skipToEnd().
|
static |
Definition at line 55 of file packetcounters.cpp.
References mInCurrentSec, mInPackets, mInPacketsCalc, runCounters, and updateCounter().
Referenced by Net::MessageIn::MessageIn().
|
static |
Definition at line 76 of file packetcounters.cpp.
References mOutBytes, mOutBytesCalc, mOutCurrentSec, runCounters, and updateCounter().
Referenced by EAthena::MessageOut::expand(), and TmwAthena::MessageOut::expand().
|
static |
Definition at line 87 of file packetcounters.cpp.
References mOutCurrentSec, mOutPackets, mOutPacketsCalc, runCounters, and updateCounter().
Referenced by Net::MessageOut::MessageOut().
|
static |
Definition at line 123 of file packetcounters.cpp.
References BLOCK_END, BLOCK_START, mInBytes, mInBytesCalc, mInCurrentSec, mInPackets, mInPacketsCalc, mOutBytes, mOutBytesCalc, mOutCurrentSec, mOutPackets, mOutPacketsCalc, runCounters, and updateCounter().
Referenced by Game::slowLogic().
|
staticprivate |
Definition at line 110 of file packetcounters.cpp.
References CAST_S32, and cur_time.
Referenced by incInBytes(), incInPackets(), incOutBytes(), incOutPackets(), and update().
|
static |
Definition at line 56 of file packetcounters.h.
Referenced by incInBytes(), and update().
|
static |
Definition at line 57 of file packetcounters.h.
Referenced by getInBytes(), incInBytes(), and update().
|
static |
Definition at line 55 of file packetcounters.h.
Referenced by incInBytes(), incInPackets(), and update().
|
static |
Definition at line 58 of file packetcounters.h.
Referenced by incInPackets(), and update().
|
static |
Definition at line 59 of file packetcounters.h.
Referenced by getInPackets(), incInPackets(), and update().
|
static |
Definition at line 61 of file packetcounters.h.
Referenced by incOutBytes(), and update().
|
static |
Definition at line 62 of file packetcounters.h.
Referenced by getOutBytes(), incOutBytes(), and update().
|
static |
Definition at line 60 of file packetcounters.h.
Referenced by incOutBytes(), incOutPackets(), and update().
|
static |
Definition at line 63 of file packetcounters.h.
Referenced by incOutPackets(), and update().
|
static |
Definition at line 64 of file packetcounters.h.
Referenced by getOutPackets(), incOutPackets(), and update().