Re: Detect network interface changes
Re: Detect network interface changes
- Subject: Re: Detect network interface changes
- From: Eli Bach <email@hidden>
- Date: Sun, 19 Jul 2009 11:41:19 -0700
On Jul 19, 2009, at 10:27 AM, Ian Mark Salvame wrote:
No. Don't look at the preferences plist. That file will only change
when the settings change, not when the network state changes. Use
SystemConfiguration.framework. There are APIs to watch for changes
in the dynamic store. scutil is a command line tool you may use to
explore the dynamic store on your system.
Actually, I don't want any daemon or agent or any application
running which continuously listens to the network interface changes.
I am looking for some way, if there's any, that the OS would
automatically launch my daemon or agent or application whenever
there are changes to the network states.
I don't believe there is an officially supported way to do this.
Probably because there is such a big difference in what different
applications consider a 'change' to the network state.
The official, supported way is using SystemConfiguration (and perhaps
other apis) for you to be notified for network changes.
Eli
_______________________________________________
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