Icmp

This is a discussion on Icmp within the Windows Programming forums, part of the Platform Specific Boards category; I'm trying to make my own 'ping' tool, like the one in MS-DOS or on linux but I'm confused on ...

  1. #1
    Unregistered
    Guest

    Question Icmp

    I'm trying to make my own 'ping' tool, like the one in MS-DOS or on linux but I'm confused on how you send an ICMP Request and set the timeout and stuff. Can anyone help me out? Windows 2k/VC++ 6.0

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    You have the option of either using raw sockets or loading the ICMP DLL (slightly more complicated since you have to load all the procedures manually). The Winsock Programmer's FAQ offers source code for both solutions, and the ICMP.DLL API is also available.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  2. Question on ICMP echo request
    By kzfid in forum Networking/Device Communication
    Replies: 7
    Last Post: 11-02-2005, 05:16 PM
  3. Traceroute using UDP and ICMP
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 08-09-2002, 07:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21