by Wallonso (5 Submissions)
Category: Windows API Call/Explanation
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
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 Declarationssee code