-resolveWithTimeout never completes . . .
-resolveWithTimeout never completes . . .
- Subject: -resolveWithTimeout never completes . . .
- From: Michael Crawford <email@hidden>
- Date: Mon, 26 Jul 2010 11:34:42 -0400
I've been using the WiTap sample as a template for learning to use NSNetServiceBrowser and NSNetService. I have an iPhone server which appears to be working and is advertising a service using the -publish API. I basically lifted the TCPServer class from WiTap.
I then created a client for the desktop from scratch using the NSNetServiceBrowser, NSNetServiceBrowserDelegate, NSNetService and NSNetServiceDelegate.
The browser returns a service, which I then send a -resolveWithTimeout message to. I get the -netServiceWillResolve delegate callback but after that, nada. I never receive the -netServiceDidResolveAddress call or the -netService:didNotResolve call. I've used timeout values of 60.0 and 0.0; 1 minute and forever, respectively.
Since WiTap runs on my device and the simulator, and I am able to connect the two successfully, I know that the networking hardware and software sub-systems are working and configured properly.
Any ideas?
-Michael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden