Pinging from a C/C++ program

Vishal picture Vishal · Jul 14, 2011 · Viewed 72.1k times · Source

I want to write a C or C++ program, that given an IP address, Pings it and then performs further action based on whether the Ping was successful or not. How to do this?

Answer

Nikolai Fetissov picture Nikolai Fetissov · Jul 14, 2011

Have a blast at The Ping Page, which has a link to full source on the original Unix ping(8).