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
statPacketTransportStatThe counters to show.
Properties
CreatedTime
Gets when the counters were made, in UTC.
public DateTime CreatedTime { get; }
Property Value
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
LastActivityTime
Gets the later of LastSentTime and LastReceivedTime.
public DateTime LastActivityTime { get; }
Property Value
LastReceivedTime
Gets when a packet was last received, in UTC; when the counters were made, until then.
public DateTime LastReceivedTime { get; }
Property Value
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
ReceivedBytes
Gets the number of bytes received, IP headers included.
public long ReceivedBytes { get; }
Property Value
ReceivedPackets
Gets the number of packets received.
public long ReceivedPackets { get; }
Property Value
SentBytes
Gets the number of bytes sent, IP headers included.
public long SentBytes { get; }
Property Value
SentPackets
Gets the number of packets sent.
public long SentPackets { get; }