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

    How ping using CSocket

    Dear All,

    Is there any way to "ping" the other system using CSocket. Becz, last few days i am searching for that i can't get anything till yet. i hope codeguru will definetly guide me. ( I can get ping status using WinSock, but i can't get using CSocket).

    With Regards,
    Boopathiraja.N.

    Thanks In Advance to all guys for ur help.

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: How ping using CSocket

    Canonical "Ping" uses the ICMP protocol which I don't think is supported by CSocket; only TCP and UDP. I believe Winsock2 supports ICMP through raw sockets, but I don't think it can be extended (easily anyway) to the CSocket class.

    By the way, It's spelled: "Because."

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: How ping using CSocket

    Isn't using ICMPSendEcho API not enough?
    Victor Nijegorodov

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