DNSService: Can I compute a service's fullname myself?
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