What you need to use is NSNetServiceBrowser for finding devices with protocol. I did the same with printers, my code looks like this:
_netServiceBrowser= [[NSNetServiceBrowser alloc] init]; _netServiceBrowser.delegate= self; [_netServiceBrowser searchForServicesOfType:@"_pdl-datastream._tcp" inDomain:@"local."];
You must change @"_pdl-datastream._tcp"
for the protocol you want to find, you can find the list of protocols here: http://developer.apple.com/library/mac/#qa/qa1312/_index.html
After that, you need to write the protocol functions:
#pragma mark - NSNetServiceBrowserDelegate -(void)netServiceBrowserWillSearch:(NSNetServiceBrowser *)aNetServiceBrowser{
Website that may be useful: http://www.macresearch.org/cocoa-scientists-part-xxviii-bonjour-and-how-do-you-do
I hope this helps you
source share