Exemplo n.º 1
0
        internal void CloseConnection(uint connectionID)
        {
            IonTcpConnection connection = GetConnection(connectionID);

            if (connection == null)
            {
                return;
            }
            connection.Stop();
            _connections.Remove(connectionID);
        }
Exemplo n.º 2
0
        public void DropConnection(uint clientID)
        {
            IonTcpConnection connection = GetConnection(clientID);

            if (connection == null)
            {
                return;
            }
            CoreManager.ServerCore.GetStandardOut().PrintNotice("Dropped Connection => " +
                                                                connection.GetIPAddressString());

            connection.Stop();
            lock (_connections)
                _connections.Remove(clientID);
        }