Re: timeout on CFReadStream?
Re: timeout on CFReadStream?
- Subject: Re: timeout on CFReadStream?
- From: Quinn <email@hidden>
- Date: Mon, 23 Feb 2009 12:32:54 +0000
At 10:11 -0800 22/2/09, John Michael Zorko wrote:
What is the best way to implement a timeout on a CFReadStream in an
iPhone app?
The best way, IMO, is to allow the user to cancel. The problem with
timeouts is in the choosing of the value. It can take an awfully
long time for some networking operations to complete (especially on
an iPhone WWAN interface), and it's annoying if they time out /just/
before you managed to plug the Ethernet cable back into the Wi-Fi
base station.
Of course, this obviously isn't feasible in all cases.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden