471,348 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

check if host is alive

I'm making a program to auto-login people to border manager proxy... to
do so I have to check if they can access the inernet... I though the
best way was to check if an host (ex. google) outside the network was
alive... to do so I thought I could ping it but I'm shure there is
something way simpler... and there is probably a way without using an
exterior host.. anyways any suggestions are wlecomed .. I'm jus doing
this for fun anyways but uh clean code is always fun
thx in advance

Dec 15 '05 #1
1 3641
Typically, you would ping the machine you are trying to reach.

You can call the InternetCheckConnection function through the P/Invoke
layer to do this.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<lo*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I'm making a program to auto-login people to border manager proxy... to
do so I have to check if they can access the inernet... I though the
best way was to check if an host (ex. google) outside the network was
alive... to do so I thought I could ping it but I'm shure there is
something way simpler... and there is probably a way without using an
exterior host.. anyways any suggestions are wlecomed .. I'm jus doing
this for fun anyways but uh clean code is always fun
thx in advance

Dec 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jay | last post: by
27 posts views Thread by mrbog | last post: by
2 posts views Thread by Anand Pillai | last post: by
1 post views Thread by aaa | last post: by
2 posts views Thread by Mark Huebner | last post: by
reply views Thread by =?Utf-8?B?UmljaGFyZCBDb2xsZXR0ZQ==?= | last post: by
1 post views Thread by Peter Duniho | last post: by
5 posts views Thread by Krice | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.