Re: NSInputStream / Eventqueue / run in Background
Re: NSInputStream / Eventqueue / run in Background
- Subject: Re: NSInputStream / Eventqueue / run in Background
- From: Jens Alfke <email@hidden>
- Date: Wed, 21 Oct 2009 21:25:25 -0700
On Oct 21, 2009, at 12:22 AM, email@hidden wrote:
It's blocking while I'm transferring some data from an iPhone to the
mac via
bonjour and press some button in the front...
Bonjour doesn't transfer data. It's only for discovering what services
are available, not for connecting to them. It sounds as though you're
using some other API to make a TCP connection, like CFSocket or
NSStream, and are doing blocking I/O with it instead of waiting for
notification of data. That's what you should fix instead.
—Jens_______________________________________________
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