Re: Is my computer connected to the web?
Re: Is my computer connected to the web?
- Subject: Re: Is my computer connected to the web?
- From: Dustin Voss <email@hidden>
- Date: Fri, 16 Jan 2004 18:23:24 -0800
On 16 Jan, 2004, at 2:58 PM, Lorenzo wrote:
Any time I try to get a file from the web
and the line is slow or I am not connected, I have to wait for a
minute just
to know that the file is not available or that the connection doesn't
work
at all.
How can I know immediately whether my computer is not connected to the
web?
If you mean programmatically, you can use the System Configuration
framework. That will tell you if your computer should be connected.
I don't think there is a way to know if your computer is *actually*
connected to the Internet. The API supports that feature, but for
TCP/IP, I think sometimes it works, sometimes it doesn't. Most
protocols (FTP, HTTP) have some sort of heartbeat that they use to
check the connection, but that doesn't come into play until you make a
request of some sort.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.