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
Printable View
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
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.