Table of Contents

Class ReadOnlyPacketTransportStat

Namespace
VpnHood.Net.PacketTransports
Assembly
VpnHood.Net.PacketTransports.dll

Provides a read-only view of a transport's counters, which shows their current values.

public class ReadOnlyPacketTransportStat
Inheritance
ReadOnlyPacketTransportStat
Inherited Members

Constructors

ReadOnlyPacketTransportStat(PacketTransportStat)

Provides a read-only view of a transport's counters, which shows their current values.

public ReadOnlyPacketTransportStat(PacketTransportStat stat)

Parameters

stat PacketTransportStat

The counters to show.

Properties

CreatedTime

Gets when the counters were made, in UTC.

public DateTime CreatedTime { get; }

Property Value

DateTime

DroppedPackets

Gets the number of packets dropped: refused, timed out, failed, pushed out of a full queue, or left in the queue at disposal. A received packet whose handler throws is disposed without being counted.

public long DroppedPackets { get; }

Property Value

long

LastActivityTime

Gets the later of LastSentTime and LastReceivedTime.

public DateTime LastActivityTime { get; }

Property Value

DateTime

LastReceivedTime

Gets when a packet was last received, in UTC; when the counters were made, until then.

public DateTime LastReceivedTime { get; }

Property Value

DateTime

LastSentTime

Gets when the last send of a batch began, whether it failed or not, in UTC; when the counters were made, until then.

public DateTime LastSentTime { get; }

Property Value

DateTime

ReceivedBytes

Gets the number of bytes received, IP headers included.

public long ReceivedBytes { get; }

Property Value

long

ReceivedPackets

Gets the number of packets received.

public long ReceivedPackets { get; }

Property Value

long

SentBytes

Gets the number of bytes sent, IP headers included.

public long SentBytes { get; }

Property Value

long

SentPackets

Gets the number of packets sent.

public long SentPackets { get; }

Property Value

long