Re: Sockets and Network Disconnect?
Re: Sockets and Network Disconnect?
- Subject: Re: Sockets and Network Disconnect?
- From: Jens Alfke <email@hidden>
- Date: Thu, 31 Jul 2008 15:39:05 -0700
On 31 Jul '08, at 2:19 PM, Mark Pauley wrote:
In general, using CFNetwork and NSURL is probably going to be MUCH
easier for you if you want "nice" behavior of this sort. We already
monitor SCNetwork Reachability events and will tell you well before
the 60 second socket timeout.
NSURLConnection doesn't support custom protocols such as Karl says
he's using. Do the lower-level CFNetwork APIs like CFStream check
reachability? I wasn't aware of that.
If you want to get around this, you're going to be rolling your own
asynchronous operation stack anyhow ontop of select...
I don't think it would be quite that bad. But all the blocking socket/
stream calls in SmallSocket would probably need to be modified so that
they could time out.
—Jens _______________________________________________
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