PDA

View Full Version : Pinging multiple addresses in AMS with results?



Stobe
06-23-2008, 04:18 PM
Hello,

I have used Worm's ping DLL before to ping hosts from within AMS (thanks Worm!!). But in my newest app, I want to ping many (48) hosts on a countdown timer, and show the results by changing the font color on the screen for each host. I have everything working for 1 host, countning down every 10 seconds and showing the ping status by color, but I'm starting to think how I can do it with multiple hosts.

Since the Ping DLL has a timeout for "host unrachable" (default 1000ms), if I threw 48 hosts in the Loop, I guess I would have to wait at least 48 seconds for all the hosts to be pinged, and the results shown. Is there any way to optimize this? I could perhaps shorten the timeout on the ping. And cut it in half or more. But thought I would check with the masters around here to see if there is a better way.

Thanks as always!
-Stobe