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



>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

 _______________________________________________
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



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.