ping... return data?
is it possible to write a program that pings a certain computer and then returns the data to the program to be analized? im trying to write a program to ping proxy's and determine their response time and sort them from lowest ping to highest...
thank you for your time :)
What you can you is call the 'ping' from inside you program using the system() function. In your call you can redirect the output of ping to a file. After ping did its job, you can read the contents of the file and sort the data based on your needs.
The better, but more time-consuming solution, would be to implement your own ping process inside your program, or even as a separate process and exchange data between the two functionalities.