Thread: Icmp

  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, 06:16 PM
  3. Traceroute using UDP and ICMP
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 08-09-2002, 07:09 PM