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: 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

DateNotes
2003-09-18Explains why applications that use Bonjour should stay registered and continue browsing on sleep.

Posted: 2003-09-18


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.