Re: Detecting network change
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