public void DisconnectNow(uint data) { LibENet.PeerDisconnectNow(Unsafe, data); FreeHandle(); }
/// <summary> /// Force an immediate disconnection from the peer. /// </summary> /// <param name="data">Data describing the disconnection</param> /// <remarks> /// No <see cref="ENetEventType.Disconnect"/> event will be generated by service method once disconnection is complete /// </remarks> public void DisconnectNow(uint data) { ThrowIfNull(); LibENet.PeerDisconnectNow(m_Native, data); }