• 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: Detect network interface changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Detect network interface changes (From: Ian Mark Salvame <email@hidden>)
 >Re: Detect network interface changes (From: Ian Mark Salvame <email@hidden>)
 >Re: Detect network interface changes (From: Josh Graessley <email@hidden>)
 >Re: Detect network interface changes (From: Ian Mark Salvame <email@hidden>)

  • Prev by Date: Re: Detect network interface changes
  • Next by Date: Re: Detect network interface changes
  • Previous by thread: Re: Detect network interface changes
  • Next by thread: Re: Detect network interface changes
  • Index(es):
    • Date
    • Thread