示例#1
0
 public void DisconnectNow(uint data)
 {
     LibENet.PeerDisconnectNow(Unsafe, data);
     FreeHandle();
 }
示例#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);
        }