Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Knowledge Base > Code Library > Ping with raw sockets


Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2004, 01:52 PM
OnErr0r's Avatar
OnErr0r OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,726
Lightbulb Ping with raw sockets


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.
Attached Files
File Type: zip ping.zip (7.1 KB, 494 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PING enable your APPS and SCRIPTS usetheforce2 Code Library 4 03-09-2004 07:37 PM
Ping Revisited Jay1b Communications 15 08-08-2003 06:46 AM
Winsock control PING rann Communications 2 10-09-2002 05:54 PM
To Ping or not to Ping... Writer General 6 08-02-2002 02:25 PM
Ping Wizzard Communications 1 11-22-2001 05:18 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->