home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / Fast_multi2153365272009.psc / @PSC_ReadMe_72116_1.txt next >
Text File  |  2009-05-27  |  1KB  |  17 lines

  1. Title: asynchronous Fast multi ping
  2. Description: asynchronous Ping of multiple Hosts using the IcmpSendEcho2 function
  3. It looks a bit like multithreading.
  4. And it is impressive, how less time is needed to ping up to 100 or more hosts.
  5. (i tried 15 class C subnets (=over 3000 hosts), with 5 percent hosts online in 60 seconds)
  6. Why IcmpSendEcho2 and not the standard IcmpSendEcho ?
  7. If you use IcmpSendEcho your computer seems to be locked, while trying to get a ping response.
  8. Because IcmpSendEcho is working synchronous, this means that the Caller has to wait for the Result.
  9. IcmpSendEcho2 works asynchronous. So you can start to ping an do something else.
  10. This is a tribute to LiTe's fast ParaPing(the basic idea).
  11. Except I use ICMP instead of a specific port.
  12. Comments are welcome
  13. This file came from Planet-Source-Code.com...the home millions of lines of source code
  14. You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=72116&lngWId=1
  15.  
  16. The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.
  17.