• 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: [Rendezvous] How to obtain DNS-SD TXT Record from NSNetService?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >[Rendezvous] How to obtain DNS-SD TXT Record from NSNetService? (From: James Chen <email@hidden>)
 >Re: [Rendezvous] How to obtain DNS-SD TXT Record from NSNetService? (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: key value validation problem
  • Next by Date: Re: [RePost] NSBezierPath currentPoint
  • Previous by thread: Re: [Rendezvous] How to obtain DNS-SD TXT Record from NSNetService?
  • Next by thread: NSBezierPath from NSImage?
  • Index(es):
    • Date
    • Thread