On 2003-11-05, Rudolf <ru*****@hotmail.com.donotspammeandsoon> wrote:
Is there a way in VB.Net to implement ping functionality
without using raw sockets?
I cannot use raw sockets because it has been
locked/disabled for security reasons.
Thanks
Rudolf
Well, there are a couple of ways that come to mind. You could use the
System.Diagnostics.Process class to call the windows ping program in the
back ground and redirect it's output so that you can read and parse the
results...
Another method maybe to use P/Invoke to call the Icmp helper functions
to perform the ping. I used to have a VB.NET sample of this that I put
together from some VB6 code I found, but for the life of me - I can't
find it. It maybe at work, so I will check tomorrow and post back...
--
Tom Shelton
MVP [Visual Basic]