Ping with raw sockets

OnErr0r
02-23-2004, 12:52 PM
This example shows how to send ICMP packets (ping) using raw sockets in .net. Response times are calculated using QueryPerformanceCounter. You should be able to alter my code to easily send other icmp packets besides ECHO. In the future look for a Traceroute sample based on this same code. Enjoy! And please use this code responsibly.

Note: Administrator privledges are required to create raw sockets.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum