Esempio n. 1
0
 public void DisconnectNow(uint data)
 {
     LibENet.PeerDisconnectNow(Unsafe, data);
     FreeHandle();
 }
Esempio n. 2
0
        /// <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);
        }