r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
eng::ConnectionStats Struct Reference

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.
 

Detailed Description

Connection statistics tracking.

Tracks various network metrics for monitoring and debugging

Definition at line 58 of file AsioClient.hpp.

Member Data Documentation

◆ bytesTransferred

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().

◆ connectionTime

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().

◆ packetsLost

std::uint32_t eng::ConnectionStats::packetsLost = 0

Estimated number of lost packets.

Definition at line 63 of file AsioClient.hpp.

◆ packetsReceived

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().

◆ packetsSent

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().


The documentation for this struct was generated from the following file: