Class NetworkStatistics
- Namespace
- BSGameLib.Networking
- Assembly
- BSGameLib.Networking.dll
A transport's traffic since it started, and each open connection's.
public sealed record NetworkStatistics : IEquatable<NetworkStatistics>
- Inheritance
-
NetworkStatistics
- Implements
- Inherited Members
Remarks
Bytes are what this library puts on and takes off the wire -- frames and datagrams with their headers -- not QUIC's own encryption and acknowledgements, which it cannot see. The totals include connections that have closed.
Constructors
NetworkStatistics(long, long, IReadOnlyList<ConnectionStatistics>)
A transport's traffic since it started, and each open connection's.
public NetworkStatistics(long BytesSent, long BytesReceived, IReadOnlyList<ConnectionStatistics> Connections)
Parameters
BytesSentlongEverything sent since the transport started.
BytesReceivedlongEverything received since the transport started.
ConnectionsIReadOnlyList<ConnectionStatistics>The connections open now.
Remarks
Bytes are what this library puts on and takes off the wire -- frames and datagrams with their headers -- not QUIC's own encryption and acknowledgements, which it cannot see. The totals include connections that have closed.
Properties
AverageRoundTripTime
The average round-trip time over the open connections that have one, or null.
public TimeSpan? AverageRoundTripTime { get; }
Property Value
BytesReceived
Everything received since the transport started.
public long BytesReceived { get; init; }
Property Value
BytesSent
Everything sent since the transport started.
public long BytesSent { get; init; }
Property Value
Connections
The connections open now.
public IReadOnlyList<ConnectionStatistics> Connections { get; init; }