How to use PING utility in my program
-
How can i use the ping utility in my program. I need to ping a particular IP address and display the result.
-
How can i use the ping utility in my program. I need to ping a particular IP address and display the result.
There's two options: 1. Run the ping program by launching it. There's LOTS of examples out there on how to launch a console program and redirect its stdout and stderr back to you. 2. Figure out the ping protocol and write some socket code to do it yourself. I'm guessing #2 wouldn't be that hard to do, but I've never looked at ping myself.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins