• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is my computer connected to the web?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Is my computer connected to the web? (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: How to completely release every object allocated when opening a NIB file ?
  • Next by Date: How Can i make my View as Sticky
  • Previous by thread: Is my computer connected to the web?
  • Next by thread: Re: Is my computer connected to the web?
  • Index(es):
    • Date
    • Thread