On Wed, Feb 02, 2000 at 12:58:51PM -0800, 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 ????

Why do you need to know -- what does the application do? Pinging a known
host on the internet restricts the app to use on the internet, and not any
other network, which is probably a bad idea. The best thing is probably just
to try to connect to the resource you need to use, with appropriate timeouts
implemented.

-- 
QOTD: "Sure, I turned down a drink once. Didn't understand the question."
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to