• 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: + (NSHost*) currentHost?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: + (NSHost*) currentHost? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: + (NSHost*) currentHost?
  • Next by Date: Ref:Newbie question :How to authenticate a user
  • Previous by thread: Re: + (NSHost*) currentHost?
  • Next by thread: NSTask and Notification?
  • Index(es):
    • Date
    • Thread