• 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: Detecting a network connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting a network connection


  • Subject: Re: Detecting a network connection
  • From: colors <email@hidden>
  • Date: Wed, 28 Oct 2009 09:22:43 -0700

Is there an API for determining a physical network connection (ethernet, WiFi, etc.)?

On Oct 28, 2009, at 7:37 AM, Dave Carrigan wrote:


On Oct 28, 2009, at 7:32 AM, colors wrote:

I am currently use NSHost to determine if I can see a particular domain, before I initiate a lengthly sso to that domain. However, I am finding that depending on the settings of some network DNS servers, this method does not always work. Any suggestions of a better way to confirm a live internet connection?

Have a look at the SCNetworkReachability APIs in the SystemConfiguration framework.


--
Dave Carrigan
email@hidden
Seattle, WA, USA


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting a network connection
      • From: Jens Alfke <email@hidden>
References: 
 >Getting a handle on inf (From: Ian Piper <email@hidden>)
 >Re: Getting a handle on inf (From: Greg Parker <email@hidden>)
 >Re: Getting a handle on inf (From: Ian Piper <email@hidden>)
 >Re: Getting a handle on inf (From: Andrew Farmer <email@hidden>)
 >Detecting a network connection (From: colors <email@hidden>)
 >Re: Detecting a network connection (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: EXC_BAD_ACCESS when migrating a store, but only sometimes...
  • Next by Date: Programmatically invoking double-click bindings on NSTableView
  • Previous by thread: Re: Detecting a network connection
  • Next by thread: Re: Detecting a network connection
  • Index(es):
    • Date
    • Thread