Table of Contents

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

BytesSent long

Everything sent since the transport started.

BytesReceived long

Everything received since the transport started.

Connections IReadOnlyList<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

TimeSpan?

BytesReceived

Everything received since the transport started.

public long BytesReceived { get; init; }

Property Value

long

BytesSent

Everything sent since the transport started.

public long BytesSent { get; init; }

Property Value

long

Connections

The connections open now.

public IReadOnlyList<ConnectionStatistics> Connections { get; init; }

Property Value

IReadOnlyList<ConnectionStatistics>