Show / Hide Table of Contents

# Class NetStatistics

##### Inheritance

object
NetStatistics

###### Namespace: LiteNetLib

###### Assembly: LiteNetLib.dll

##### Syntax

    public sealed class NetStatistics

### Properties

#### BytesReceived

##### Declaration

    public long BytesReceived { get; }

##### Property Value

Type | Description
--- | ---
long |

#### BytesSent

##### Declaration

    public long BytesSent { get; }

##### Property Value

Type | Description
--- | ---
long |

#### PacketLoss

##### Declaration

    public long PacketLoss { get; }

##### Property Value

Type | Description
--- | ---
long |

#### PacketLossPercent

##### Declaration

    public long PacketLossPercent { get; }

##### Property Value

Type | Description
--- | ---
long |

#### PacketsReceived

##### Declaration

    public long PacketsReceived { get; }

##### Property Value

Type | Description
--- | ---
long |

#### PacketsSent

##### Declaration

    public long PacketsSent { get; }

##### Property Value

Type | Description
--- | ---
long |

### 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

    public void Reset()

#### 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

object.ToString()