Struct ReliableUtility.RTTInfo
RTT (round-trip time) information tracked internally by the reliable pipeline stage. Can be read from the ReliableUtility.SharedContext, which itself can be obtained through the GetPipelineBuffers(NetworkPipeline, NetworkPipelineStageId, NetworkConnection, out NativeArray<Byte>, out NativeArray<Byte>, out NativeArray<Byte>) method.
Inherited Members
Namespace: Unity.Networking.Transport.Utilities
Syntax
public struct RTTInfo
Fields
LastRtt
RTT of the last packet acknowledged.
Declaration
public int LastRtt
Field Value
Type | Description |
---|---|
Int32 | RTT in milliseconds. |
ResendTimeout
Timeout used to resend unacknowledged packets.
Declaration
public int ResendTimeout
Field Value
Type | Description |
---|---|
Int32 | Resend timeout in milliseconds. |
SmoothedRtt
Smoothed RTT of the last packets acknowledged.
Declaration
public float SmoothedRtt
Field Value
Type | Description |
---|---|
Single | Smoothed RTT in milliseconds. |
SmoothedVariance
Variance of the smoothed RTT.
Declaration
public float SmoothedVariance
Field Value
Type | Description |
---|---|
Single | Smoothed RTT variance in milliseconds. |