Re: -resolveWithTimeout never completes . . .
Re: -resolveWithTimeout never completes . . .
- Subject: Re: -resolveWithTimeout never completes . . .
- From: Michael Crawford <email@hidden>
- Date: Mon, 26 Jul 2010 21:58:52 -0400
Problem solved. You must retain the service returned with -[NSNetServiceBrowserDelegate didFindService:moreComing:].
-Michael
On Jul 26, 2010, at 11:34 AM, Michael Crawford wrote:
> 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
_______________________________________________
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