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: Sherm Pendley <email@hidden>
- Date: Tue, 3 Feb 2004 22:01:04 -0500
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.