Ejemplo n.º 1
0
        private static void HandleConcede(ref Command command, ClientSocket socket)
        {
            var request = new Packet(PacketType.ClientGiveUp, null);

            socket.Send(request);

            Packet response = null;

            do
            {
                response = socket.Receive();
                if (response is { Type : PacketType.ServerShowsNumber })
                {
                    break;
                }
            } while (true);