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

Re: Detecting network change


  • Subject: Re: Detecting network change
  • From: Allan Nathanson <email@hidden>
  • Date: Tue, 21 Oct 2008 16:55:02 -0400


On Oct 21, 2008, at 4:32 PM, Greg wrote:

Hi, is there any way to know when the network changes?

I'm concerned specifically for regarding network changes on the iPhone, but I think that this question probably applies to OS X in general. When the user does something (or the operating system does it for them, in the case of the iPhone) like change the wireless access point they're connected to from the Airport Menu, their IP address information changes.

Is there any way of being notified when this happens?

<SystemConfiguration/SCNetworkReachability.h>

... and if you are targeting the iPhone than you might want to look at the "Reachability" sample code.

- Allan


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Detecting network change (From: Greg <email@hidden>)

  • Prev by Date: Detecting network change
  • Next by Date: Re: Detecting network change
  • Previous by thread: Detecting network change
  • Next by thread: Re: Detecting network change
  • Index(es):
    • Date
    • Thread