• 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
Re: Sockets and Network Disconnect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sockets and Network Disconnect?
      • From: Karl Moskowski <email@hidden>
References: 
 >Sockets and Network Disconnect? (From: Karl Moskowski <email@hidden>)
 >Re: Sockets and Network Disconnect? (From: Jens Alfke <email@hidden>)
 >Re: Sockets and Network Disconnect? (From: Mark Pauley <email@hidden>)

  • Prev by Date: RE: Dropped WoL packet
  • Next by Date: Re: Sockets and Network Disconnect?
  • Previous by thread: Re: Sockets and Network Disconnect?
  • Next by thread: Re: Sockets and Network Disconnect?
  • Index(es):
    • Date
    • Thread