Struct ConnectionStatistics
A structure that holds various statistics about a NetworkConnection and is obtained by calling GetConnectionStatistics(NetworkConnection). These statistics are particularly useful to assess the quality of a connection to a specific peer.
Inherited Members
Namespace: Unity.Networking.Transport.Analytics
Assembly: Unity.Networking.Transport.dll
Syntax
public struct ConnectionStatistics
Fields
Latency
Latency statistics for the connection.
Declaration
public ConnectionStatistics.LatencyStatistics Latency
Field Value
| Type | Description |
|---|---|
| ConnectionStatistics.LatencyStatistics |
Reliable
Cumulative counters for all pipelines configured as reliable (e.g. using the ReliableSequencedPipelineStage) for this connection.
Declaration
public ReliableUtility.Statistics Reliable
Field Value
| Type | Description |
|---|---|
| ReliableUtility.Statistics |
Properties
PacketDuplicationPercent
Percentage of packets that were duplicated on this connection.
Declaration
public float PacketDuplicationPercent { get; }
Property Value
| Type | Description |
|---|---|
| float |
PacketLossPercent
Percentage of packets that were lost on this connection.
Declaration
public float PacketLossPercent { get; }
Property Value
| Type | Description |
|---|---|
| float |
PacketOutOfOrderPercent
Percentage of packets received out of order on this connection.
Declaration
public float PacketOutOfOrderPercent { get; }
Property Value
| Type | Description |
|---|---|
| float |