Re: [Rendezvous] How to obtain DNS-SD TXT Record from NSNetService?
Re: [Rendezvous] How to obtain DNS-SD TXT Record from NSNetService?
- Subject: Re: [Rendezvous] How to obtain DNS-SD TXT Record from NSNetService?
- From: James Chen <email@hidden>
- Date: Wed, 4 Feb 2004 12:34:30 +0800
Thanks a lot, Sherm.
That works.
Here's one thing I have to mention for others is:
don't forget to resolve that net service before you send
protocolSpecificInformation.
Best Regards,
James
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On Feb 4, 2004, at 11:01 AM, Sherm Pendley wrote:
On Feb 3, 2004, at 9:21 PM, James Chen wrote:
Say I'd like to browse Rendezvous-supported web.
So I use NSNetServiceBrowser to search for all net service with type
"_http._tcp".
I can obtain the ip and port of the web by resolving the NSNetService
I found.
And I also need the path of the web stored in the TXT record that
mentioned in the document
http://developer.apple.com/documentation/Cocoa/Conceptual/
NetServices/index.html#//apple_ref/doc/uid/10000119i.
So far I can't find a way to obtain the TXT record from NSNetService.
The reference I have for NSNetService lists
protocolSpecificInformation and setProtocolSpecificInformation:
methods, but states that they're used for "older zeroconf-style
clients" and discourages their use.
However, I don't see any alternative means of getting that
information, and those methods do appear to work - at least, in the
quick test I just ran, the first method returned the correct path for
my Rendezvous-advertised sites on my local Apache server, and what
looked like some interesting information from iTunes.
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.