Class NetStatistics
Inheritance
NetStatistics
Assembly: LiteNetLib.dll
Syntax
public sealed class NetStatistics
Properties
BytesReceived
Declaration
public long BytesReceived { get; }
Property Value
BytesSent
Declaration
public long BytesSent { get; }
Property Value
PacketLoss
Declaration
public long PacketLoss { get; }
Property Value
PacketLossPercent
Declaration
public long PacketLossPercent { get; }
Property Value
PacketsReceived
Declaration
public long PacketsReceived { get; }
Property Value
PacketsSent
Declaration
public long PacketsSent { get; }
Property Value
Methods
AddBytesReceived(long)
Declaration
public void AddBytesReceived(long bytesReceived)
Parameters
Type |
Name |
Description |
long |
bytesReceived |
|
AddBytesSent(long)
Declaration
public void AddBytesSent(long bytesSent)
Parameters
Type |
Name |
Description |
long |
bytesSent |
|
AddPacketLoss(long)
Declaration
public void AddPacketLoss(long packetLoss)
Parameters
Type |
Name |
Description |
long |
packetLoss |
|
IncrementPacketLoss()
Declaration
public void IncrementPacketLoss()
IncrementPacketsReceived()
Declaration
public void IncrementPacketsReceived()
IncrementPacketsSent()
Declaration
public void IncrementPacketsSent()
Reset()
Declaration
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides