Пример #1
0
        private void Close()
        {
            ConnectHelper.CloseConnection(mySqlConn);
            if (clientSocket != null)
            {
                Console.WriteLine("一个远程连接已关闭");

                clientSocket.Close();
                if (room != null)
                {
                    room.Close(this);
                }
                server.RemoveClient(this);
            }
        }