CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Posts
    72

    Issue with IcmpSendEcho

    Hi, I'm having an issue with a ping class that uses IcmpSendEcho. If I try to ping two or more IPs one after the other, it works fine. However, if I try to ping two or more at once (in separate threads), I get strange results. I traced it to the fact that the reply IP isn't the one I originally pinged in the case of simultaneous pinging. In fact, sometimes it's my own IP. However, pinging one after the other, the reply IP is always the IP I pinged (assuming the person is pingable with ICMP). Any ideas what could cause this?

  2. #2
    Join Date
    Apr 2010
    Posts
    7

    Re: Issue with IcmpSendEcho


  3. #3
    Join Date
    Dec 2003
    Posts
    72

    Re: Issue with IcmpSendEcho

    Yeah. It seems to be related to using the winsock ping instead of the icmp one. So, I switched to icmp.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured