Re: Detect network interface changes
Re: Detect network interface changes
- Subject: Re: Detect network interface changes
- From: Peter Sichel <email@hidden>
- Date: Sun, 19 Jul 2009 11:00:46 -0400
On Jul 19, 2009, at 9:27 AM, Jerry Krinock wrote:
I would say that you are going to have to write a little helper tool
-- a daemon or agent -- which will be launched and "kept alive" by
launchd. Your helper tool will do nothing but sit and watch for
network interface changes. (I don't know how to do that). When it
sees such a change, your helper tool will launch your application.
An easy way to detect network interface changes is to ask the System
Configuration Framework (SCF) to notify you when an IPv4 address
changes (per Quinn's example MoreSCF). I've used this technique in
several of my own products.
- Peter Sichel
Sustainable Softworks
www.sustworks.com
_______________________________________________
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