Re: + (NSHost*) currentHost?
Re: + (NSHost*) currentHost?
- Subject: Re: + (NSHost*) currentHost?
- From: petite_abeille <email@hidden>
- Date: Wed, 22 Oct 2003 21:14:49 +0200
Hi Chris,
On Wednesday, Oct 22, 2003, at 20:33 Europe/Amsterdam, Chris Hanson
wrote:
There's an Apple Tech Note on living in a multi-homed environment. I
can't give the number off the top of my head, but it describes what
you need to do.
Is it this one?
http://developer.apple.com/technotes/tn/tn1145.html
The short version is "Don't bind to a particular local address." That
is, if you're listening for connections, be sure you're listening on
INADDR_ANY.
Ok.
SystemConfiguration.framework (SCF) includes notifications that are
broadcast whenever a key changes. Since SCF manages network
configurations, that's what you want to use.
You can play around with /usr/sbin/scutil to see how this works.
Thanks! That was exactly what I what looking for :)
Cheers,
PA.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.