Adding infinite loop in classes ServerUDP and ClientUDP