NetManagerDisconnectPeer Method (NetPeer, Byte, Int32, Int32) |
LiteNetLib |
Disconnect peer from server and send additional data (Size must be less or equal MTU - 8)
Namespace: LiteNetLib
Assembly: LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax
C#
public void DisconnectPeer( NetPeer peer, byte[] data, int start, int count )
Parameters
- peer
- Type: LiteNetLibNetPeer
peer to disconnect - data
- Type: SystemByte
additional data - start
- Type: SystemInt32
data start - count
- Type: SystemInt32
data length
See Also