Пример #1
0
        private void Disconnect(INetworkSocket socket, RconMessenger messenger)
        {
            try
            {
                if (messenger != null)
                {
                    messenger.CloseConnection();
                }

                if (socket != null)
                {
                    socket.CloseConnection();
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Пример #2
0
 /// <summary>
 /// Close the remote connection
 /// </summary>
 public void CloseConnection()
 {
     _socket.CloseConnection();
 }