Rebel Fork Framework
Urho3D::NetworkStatisticsCounter Class Reference

Public Member Functions

 NetworkStatisticsCounter (unsigned windowSize=10, unsigned intervalMs=1000)
 NetworkStatisticsCounter (NetworkConnection *connection, unsigned windowSize=10, unsigned intervalMs=1000)
void Attach (NetworkConnection *connection)
 Subscribe to connection signals for automatic packet statistics.
void AddIncomingPacket (unsigned bytes)
void AddOutgoingPacket (unsigned bytes)
uint64_t GetBytesInPerSec ()
uint64_t GetBytesOutPerSec ()
int GetPacketsInPerSec ()
int GetPacketsOutPerSec ()
NetworkStatisticsSnapshot GetSnapshot ()

Private Attributes

TimedCounter packetCounterIncoming_
TimedCounter packetCounterOutgoing_
TimedCounter bytesCounterIncoming_
TimedCounter bytesCounterOutgoing_
WeakPtr< NetworkConnection > connection_ {}

The documentation for this class was generated from the following file:
  • Urho3D/Network/NetworkStatisticsCounter.h