Hi,
I want to be able to enumerate the names of devices on a local network from a device running iPhone OS 3.x (iPhone/iPad). I have tried using NSNetServiceBrowser to find all services like so:
[serviceBrowser searchForServicesOfType:@"_services._dns-sd._udp." inDomain:@"local."];
this returns results but when I try and resolve the addresses I get the following errors back
NSNetServicesErrorCode = -72004;
NSNetServicesErrorDomain = 10;
I have looked up the error and it appears there is a bad argument?
[kCFNetServiceErrorBadArgument
A required argument was not provided or was not valid.]
if I do a service specific search like
[serviceBrowser searchForServicesOfType:@"_ipp._tcp." inDomain:@""];
resolutions works fine.
So, am I on the right track with NSNetServiceBrowser or is there some other method that will allow me to enumerate the names of devices connected to my network?