NetManagerDisconnectPeer Method (NetPeer, NetDataWriter) |
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, NetDataWriter writer )
Parameters
- peer
- Type: LiteNetLibNetPeer
peer to disconnect - writer
- Type: LiteNetLib.UtilsNetDataWriter
additional data
See Also