Re: Detecting network change
Re: Detecting network change
- Subject: Re: Detecting network change
- From: Jens Alfke <email@hidden>
- Date: Tue, 21 Oct 2008 13:56:18 -0700
On Oct 21, 2008, at 1:32 PM, Greg wrote:
Hi, is there any way to know when the network changes?
Use SystemConfiguration.framework to register for notifications when
the network configuration changes. There's sample code for both Mac
and iPhone showing how to use it.
Note that this isn't magic — it will tell you if the user unplugged
Ethernet from the computer, but not if he unplugs the router's
Ethernet connection, or if workmen down the street accidentally cut
his cable, or the ISP's routers go down, or your server crashes, etc.
In other words, it tells you about things that happen on the computer,
not elsewhere along the network.
—Jens _______________________________________________
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