• 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: Detecting Configuration Changed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Configuration Changed?


  • Subject: Re: Detecting Configuration Changed?
  • From: Allan Nathanson <email@hidden>
  • Date: Mon, 16 Jun 2003 21:58:53 -0400

Here's a real quick answer.

You can, in general, get a notification which indicates that a change has been requested. Getting a notification when a change has completed is a completely different story. The entire network preference and configuration infrastructure is based around "change" and in most cases we avoid passing around notifications that something has *NOT* changed. Since each notification can trigger any number of events its nearly impossible to know when everyone has quieted down and the change has completed.

So...
- do you really need to know when a change has completed?
- wouldn't you be better off watching for those changes that affect your code, act on any changes that you do receive, and sit back and listen for more changes?

... and, yes, it is possible to have a location change where the only delivered notification is that the preferences have been updated to what they were beforehand. ... which means that there will not always be a transition ...

- Allan

On Monday, June 16, 2003, at 9:11 PM, Duane Murphy wrote:

[ Thank you Quinn for stopping my wild goose chase. ]

We are changing network locations. The problem we are having is detecting
when the change to the location has completed. In particular that DHCP
has completed.

The current approach I am considering is to:

1. establish a dynamic store notification string
2. change the location
3. wait for a notification or notifications that shows that the location
has changed and that DHCP has completed

The problem is, I'm not sure what to watch for for notifications. There
are several possibilities. What would be the recommended watch string?

One concern I have is changing from one location to a very similar
location where the DHCP address may be the same. Will there always be a
transition? It seems like there ought to be.

...Duane
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Detecting Configuration Changed?
      • From: "Duane Murphy" <email@hidden>
References: 
 >Detecting Configuration Changed? (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: Detecting Configuration Changed?
  • Next by Date: no route to host with ipv6?
  • Previous by thread: Detecting Configuration Changed?
  • Next by thread: Re: Detecting Configuration Changed?
  • Index(es):
    • Date
    • Thread