Show / Hide Table of Contents

# Class LiteNetLibNetPeer

##### Inheritance

object
AbstractNetPeer
LiteNetLibNetPeer

###### Namespace: LiteEntitySystem.Transport

###### Assembly: LiteEntitySystem.dll

##### Syntax

    public class LiteNetLibNetPeer : AbstractNetPeer

### Constructors

#### LiteNetLibNetPeer(NetPeer, bool)

##### Declaration

    public LiteNetLibNetPeer(NetPeer netPeer, bool assignToTag)

##### Parameters

Type | Name | Description
--- | --- | ---
NetPeer | netPeer |
bool | assignToTag |

### Fields

#### NetPeer

##### Declaration

    public readonly NetPeer NetPeer

##### Field Value

Type | Description
--- | ---
NetPeer |

### Methods

#### GetMaxUnreliablePacketSize()

##### Declaration

    public override int GetMaxUnreliablePacketSize()

##### Returns

Type | Description
--- | ---
int |

##### Overrides

AbstractNetPeer.GetMaxUnreliablePacketSize()

#### SendReliableOrdered(ReadOnlySpan<byte>)

##### Declaration

    public override void SendReliableOrdered(ReadOnlySpan<byte> data)

##### Parameters

Type | Name | Description
--- | --- | ---
ReadOnlySpan<byte> | data |

##### Overrides

AbstractNetPeer.SendReliableOrdered(ReadOnlySpan<byte>)

#### SendUnreliable(ReadOnlySpan<byte>)

##### Declaration

    public override void SendUnreliable(ReadOnlySpan<byte> data)

##### Parameters

Type | Name | Description
--- | --- | ---
ReadOnlySpan<byte> | data |

##### Overrides

AbstractNetPeer.SendUnreliable(ReadOnlySpan<byte>)

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

#### TriggerSend()

##### Declaration

    public override void TriggerSend()

##### Overrides

AbstractNetPeer.TriggerSend()