Пример #1
0
 public void Disconnect(uint data) => LibENet.PeerDisconnect(Unsafe, data);
Пример #2
0
        /// <summary>
        /// Request disconnection from the peer.
        /// </summary>
        /// <param name="data">Data describing the disconnection</param>
        /// <remarks>
        /// An <see cref="ENetEventType.Disconnect"/> event will be generated by service method once disconnection is complete
        /// </remarks>
        public void Disconnect(uint data)
        {
            ThrowIfNull();

            LibENet.PeerDisconnect(m_Native, data);
        }