VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

asynchronous Fast multi ping

Wallonso  (5 Submissions)   Windows API Call/Explanation   Intermediate   Wed 3rd February 2021

asynchronous Ping of multiple Hosts using the IcmpSendEcho2 function
It looks a bit like multithreading.
And it is impressive, how less time is needed to ping up to 100 or more hosts.
(i tried 15 class C subnets (=over 3000 hosts), with 5 percent hosts online in 60 seconds)
Why IcmpSendEcho2 and not the standard IcmpSendEcho ?
If you use IcmpSendEcho your computer seems to be locked, while trying to get a ping response.
Because IcmpSendEcho is working synchronous, this means that the Caller has to wait for the Result.
IcmpSendEcho2 works asynchronous. So you can start to ping an do something else.
This is a tribute to LiTe's fast ParaPing(the basic idea).
Except I use ICMP instead of a specific port.
Comments are welcome

Inputs
see readme

API Declarations
see code

Rate asynchronous Fast multi ping (4(4 Vote))

Download asynchronous Fast multi ping

asynchronous Fast multi ping Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters