• 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: 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.

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

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