Good day.
The question arose how to manage the ping process in C ++ (Qt). With QProcess :: execute, I run ping with the -t option, and ping the server. The problem is that I do not know exactly when he will respond to the ping, and, accordingly, I need to organize the reception of response ICMP packets, and, in addition, send a command to stop the ping process. How should this be organized? Open udp socket, catch the packet and kill the ping.exe process? Or can this be done somehow simpler?