On Wed, 2 Feb 2000, h a wrote:
> I am writing a small linux application and at some point i want to know if
> the user is hooked to the internet. how can i tell if the user has internet
> access at the moment ????
>
If you know that a certain interface will always be connecting through a
specific wan device you can parse the interface list for devices that
start with "ppp" or the like.
Otherwise a simple ping to a host on the internet would probably sufice.
Jay
[EMAIL PROTECTED]
>
> thanx
> mark
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]