I have to call ping from c++ code.I'd like to easily read the output for further utilizations.
I have come up with two solutions:
- use a fork and a pipe, redirect ping output to the pipe and then parse it
- find a library suited for the purpose to use a ping(ip_addresss) function directly
I'd like the latter but i didn't find anything that was clearly a standard solution.
How would you do it ?