• 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
DNSService: Can I compute a service's fullname myself?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DNSService: Can I compute a service's fullname myself?


  • Subject: DNSService: Can I compute a service's fullname myself?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 28 Apr 2009 09:00:20 -0700

I'm using the DNSService (<dns_sd.h>) API now, though I'm more familiar with the high-level NSNetService wrapper. One thing I'm unsure of:

After the DNSServiceBrowse callback tells me about a service, I want to track that service's TXT record using DNSServiceQueryRecord. But to call that I need to know the service's full name. And to get the full name, it seems, I have to call DNSServiceResolve and wait for a reply.

I'm wondering if I can't just construct the full name myself — it seems to be just the concatenation of the service name, registration type and domain (with periods between, as necessary). Can I do that, and skip the DNSServiceResolve step? Or is there ever a case where the full name would be different?

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: DNSService: Can I compute a service's fullname myself?
      • From: Quinn <email@hidden>
  • Prev by Date: Re: Created Computer-to-Computer Network ping error when Ethernet is enabled?
  • Next by Date: Re: DNSService: Can I compute a service's fullname myself?
  • Previous by thread: Re: Created Computer-to-Computer Network ping error when Ethernet is enabled?
  • Next by thread: Re: DNSService: Can I compute a service's fullname myself?
  • Index(es):
    • Date
    • Thread