Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.2, 2005-06-01
Added "#include <sys/socket.h>" to fix compiler errors in Mac OS X 10.4.
Xcode 1.0 or later
Mac OS X 10.3 or later
This sample uses DNSServiceQueryRecord to send a Multicast DNS query that returns a list of Bonjour service types being advertised on the local network. Machines must be running mDNSResponder-58.6 (Mac OS X 10.3.4) or later in order to respond to this query.