• 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
NSNetServiceBrowser / NSNetService Hostname Lookup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNetServiceBrowser / NSNetService Hostname Lookup


  • Subject: NSNetServiceBrowser / NSNetService Hostname Lookup
  • From: Adam <email@hidden>
  • Date: Thu, 21 Apr 2005 23:01:45 -0400

I read about NSNetServiceBrowser and I wrote a small app that could detect the rendezvous / bonjour iTunes sharing service on the network using NSNetServiceBrowser and NSNetService with a service type of _daap._tcp.

NSNetService returns a struct sockaddr that has the IP address and the port of the machine broadcasting the service. However, I would also like to get the hostname / Computer Name of the machine broadcasting this service. How could I obtain this info?


Thanks, Adam

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSNetServiceBrowser / NSNetService Hostname Lookup
      • From: Marc Krochmal <email@hidden>
  • Prev by Date: Re: #define issues
  • Next by Date: Custom NSMenu help
  • Previous by thread: Re: Objective-C++ and overloading and inheritance of static member functions
  • Next by thread: Re: NSNetServiceBrowser / NSNetService Hostname Lookup
  • Index(es):
    • Date
    • Thread