I'm sure I'm just a few letters away from getting this to work, but maybe not...
On the server-side, I've got this (Java);
ServiceInfo info = ServiceInfo.create("_mjdj._tcp.local.", "foo", 1268, 0, 0, "path=index.html");
jmdns.registerService(info);
This works perfectly with my Java client or a Bonjour Browser (service shows as "_mjdj._tcp." in local). So in Java this works:
jmdns.list("_mjdj._tcp.local.");
But from an iOS client I can't seem to find the service (or something). I've got the delegate methods in place, but this
NSNetServiceBrowser *browser = [[[NSNetServiceBrowser alloc] init] autorelease];
[browser setDelegate:self];
[browser searchForServicesOfType:@"_mjdj._tcp.local." inDomain:@""];
produces this error
{
NSNetServicesErrorCode = "-72004";
NSNetServicesErrorDomain = 10;
}
and if I do this (guessing)
[browser searchForServicesOfType:@"_mjdj._tcp." inDomain:@"local"];
the netServiceBrowserWillSearch
gets called but nothing after that.