Bonjour and wake from sleep
Q: Do I need to do anything special in regards to my Bonjour registrations and browsing as a result of system sleep?
A: Do I need to do anything special in regards to my Bonjour registrations and browsing as a result of system sleep?
No. mDNSResponder handles system sleep on behalf of the client so nothing special needs to happen. Simply continue to register and browse through the sleep/wake process. In fact, if you were to manually de-register on sleep and re-register on wake, it would be inefficient because more packets would end up being sent on the wire. mDNSResponder will handle the de-register and re-register on your behalf and as a result, it will do it more efficiently by combining all records into one packet.
After the computer wakes up, your application will also be notified if any previously discovered services went away while the machine was asleep, so you should continue browsing through the sleep/wake process as well.
Document Revision History
Date | Notes |
---|---|
2003-09-18 | New document that explains why applications that use Bonjour should stay registered and continue browsing on sleep. |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-09-18