Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21192

Multiple PINGs in parallel

$
0
0
Hello!

I have a ping function like s = Ping("1.2.3.4", 10000) that returns whether a host is alive or not.
10000=timeout value in miliseconds

The ping function uses IcmpSendEcho API function.

I want to be able to do multiple pings in parallel, even in case the host is not answering ( during the timeout period ).

I googled and tried using CreateThread API, but it crashes.

Any idea on how to call my ping function asynchronous or other workaround?

Viewing all articles
Browse latest Browse all 21192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>