helper class used to compute round trip time to an connection.
More...
#include <ConnectionMetrics.h>
helper class used to compute round trip time to an connection.
◆ GetRoundTripTimeSeconds()
float AzNetworking::ConnectionComputeRtt::GetRoundTripTimeSeconds |
( |
| ) |
const |
|
inline |
Retrieve a sample of the computed round trip time for this connection.
- Returns
- estimated round trip time (ping) for the given connection in seconds
◆ LogPacketAcked()
void AzNetworking::ConnectionComputeRtt::LogPacketAcked |
( |
PacketId |
packetId, |
|
|
AZ::TimeMs |
currentTimeMs |
|
) |
| |
Invoked whenever traffic is acknowledged from the connection this instance is responsible for.
- Parameters
-
packetId | identifier of the packet being acked |
currentTimeMs | current process time in milliseconds |
◆ LogPacketSent()
void AzNetworking::ConnectionComputeRtt::LogPacketSent |
( |
PacketId |
packetId, |
|
|
AZ::TimeMs |
currentTimeMs |
|
) |
| |
Invoked whenever traffic is sent through the connection this instance is responsible for.
- Parameters
-
packetId | identifier of the packet being sent |
currentTimeMs | current process time in milliseconds |
◆ LogPacketTimeout()
void AzNetworking::ConnectionComputeRtt::LogPacketTimeout |
( |
PacketId |
packetId | ) |
|
Invoked whenever traffic times out from the connection this instance is responsible for.
- Parameters
-
packetId | identifier of the packet timing out |
The documentation for this class was generated from the following files:
- Code/Framework/AzNetworking/AzNetworking/ConnectionLayer/ConnectionMetrics.h
- Code/Framework/AzNetworking/AzNetworking/ConnectionLayer/ConnectionMetrics.inl