• 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: NSNetServiceBrowser when a search finds nothing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNetServiceBrowser when a search finds nothing


  • Subject: Re: NSNetServiceBrowser when a search finds nothing
  • From: Josh Graessley <email@hidden>
  • Date: Thu, 16 Nov 2017 10:58:24 -0800

The search is never finished until you decide it is by cancelling the browse.

Bonjour sends multicasts queries with an exponential backoff, up to some
maximum amount of time. When a Bonjour service is advertised/registered on an
interface, a multicast is sent out as well. As long as you have that browser
open, Bonjour will keep watching for a matching service to appear, either as a
response to one of the multicasts it sends or through an announcement sent by a
device arriving on the networking or starting the service.

The only alternative is a timeout and timeouts are bad.

-josh

> On Nov 16, 2017, at 10:36 AM, James Walker <email@hidden> wrote:
>
> If I use -[NSNetServiceBrowser searchForServicesOfType:inDomain:] and there
> happen to be no services of the specified type, my delegate gets
> netServiceBrowserWillSearch:, but nothing else.  How can I know when the
> search is finished?
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSNetServiceBrowser when a search finds nothing
      • From: James Walker <email@hidden>
References: 
 >NSNetServiceBrowser when a search finds nothing (From: James Walker <email@hidden>)

  • Prev by Date: NSNetServiceBrowser when a search finds nothing
  • Next by Date: Re: NSNetServiceBrowser when a search finds nothing
  • Previous by thread: NSNetServiceBrowser when a search finds nothing
  • Next by thread: Re: NSNetServiceBrowser when a search finds nothing
  • Index(es):
    • Date
    • Thread