Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mDNS_StartBrowse callback question...



The behaviour is unpredictable, but it is not related to the clients. Other systems have no problems keeping track of the same services. It must be our use of the mDNS APIs or perhaps our platform bindings. Is there any documentation on how to correctly implement the StartBrowse callback?

Stuart Cheshire wrote:
Hi,

I'm tracking down a problem where services disappear and re-appear for unknown reasons every few hours or so. I noticed in our debug log that the callback from mDNS_StartBrowse() is invoked with AddRecord == false while the answer->rroriginalttl > 0.

In which case should the service be removed? When AddRecord == false or when the TTL reaches 0? The comments in the header file are a little ambiguous about this...

Have fun,

Arthur van Hoff


answer->rroriginalttl is the original value that was in the record when it was received on the wire. (Information that's actually less useful than one might imagine.)

The best way to dignose this problem is probably with an mDNSNetMonitor trace.

If the service is *really* not answering queries, then after four failed queries, it will be removed from the cache. An mDNSNetMonitor trace would show that.

When you say, "disappear and re-appear", how long is the interval between disappearing and re-appearing? A second? A minute? (Running "dns-sd -B" in a terminal window will give you a time-stamped log of when things appear and disappear.)

Stuart Cheshire <email@hidden>
 * Wizard Without Portfolio, Apple Computer, Inc.
 * www.stuartcheshire.org



--

Arthur van Hoff, email@hidden
Tivo Inc. 2160 Gold Street Alviso, CA 95002
408-519-9207 (tivo), 650-283-0842 (cell), 408-519-5339 (fax)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Rendezvous-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/rendezvous-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: mDNS_StartBrowse callback question... (From: Stuart Cheshire <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.