Connection statistics tracking. More...
#include <AsioClient.hpp>
Collaboration diagram for eng::ConnectionStats:Public Attributes | |
| std::uint32_t | packetsSent = 0 |
| Total number of packets sent. | |
| std::uint32_t | packetsReceived = 0 |
| Total number of packets received. | |
| std::uint32_t | bytesTransferred = 0 |
| Total bytes transferred (sent + received) | |
| std::uint32_t | packetsLost = 0 |
| Estimated number of lost packets. | |
| std::chrono::steady_clock::time_point | connectionTime |
| Timestamp when connection was established. | |
Connection statistics tracking.
Tracks various network metrics for monitoring and debugging
Definition at line 58 of file AsioClient.hpp.
| std::uint32_t eng::ConnectionStats::bytesTransferred = 0 |
Total bytes transferred (sent + received)
Definition at line 62 of file AsioClient.hpp.
Referenced by eng::AsioClient::handleReceive(), and eng::AsioClient::sendPacketImmediate().
| std::chrono::steady_clock::time_point eng::ConnectionStats::connectionTime |
Timestamp when connection was established.
Definition at line 64 of file AsioClient.hpp.
Referenced by eng::AsioClient::AsioClient().
| std::uint32_t eng::ConnectionStats::packetsLost = 0 |
Estimated number of lost packets.
Definition at line 63 of file AsioClient.hpp.
| std::uint32_t eng::ConnectionStats::packetsReceived = 0 |
Total number of packets received.
Definition at line 61 of file AsioClient.hpp.
Referenced by eng::AsioClient::handleReceive().
| std::uint32_t eng::ConnectionStats::packetsSent = 0 |
Total number of packets sent.
Definition at line 60 of file AsioClient.hpp.
Referenced by eng::AsioClient::sendPacketImmediate().