• 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
Detecting Internet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting Internet


  • Subject: Detecting Internet
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 14 Jul 2006 11:12:25 +0200


When my app runs on a computer which connects to the internet via the internal modem then the SCNetworkReachability... functions work very well.
If no internet is available Safari shows a page "You are not connected to the..." immediately, and [NSHost hostWithName: ] returns nil at once.


But when the computer accesses the internet through the Build-in Ethernet then the reachability functions don't help.
And in this case Safari takes 2 minutes to detect the absence of an internet connection; NSHost takes 1 minute to return nil.


Question: how can my app know whether the internet would be accessed via internal modem or via Build-in Ethernet?
I have read the stuff in /Developer/ADC Reference Library/ documentation/Networking/Reference/SysConfig/ but I did not get any wiser.


Any hints would be very welcome.

Gerriet.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting Internet
      • From: "Adam R. Maxwell" <email@hidden>
    • Re: Detecting Internet
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Disabling Certain Title bar controls
  • Next by Date: [ANN] ChatKit v0.5 Released
  • Previous by thread: RE: Disabling Certain Title bar controls
  • Next by thread: Re: Detecting Internet
  • Index(es):
    • Date
    • Thread