• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
-resolveWithTimeout never completes . . .
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-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

  • Follow-Ups:
    • Re: -resolveWithTimeout never completes . . .
      • From: Michael Crawford <email@hidden>
  • Prev by Date: Re: Elapsed time vs sleep
  • Next by Date: Re: Elapsed time vs sleep
  • Previous by thread: Re: Elapsed time vs sleep
  • Next by thread: Re: -resolveWithTimeout never completes . . .
  • Index(es):
    • Date
    • Thread