• 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: Network Reachability APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Network Reachability APIs


  • Subject: Re: Network Reachability APIs
  • From: Greg Parker <email@hidden>
  • Date: Wed, 20 May 2009 14:28:08 -0700

On May 20, 2009, at 2:03 PM, Eric Hermanson wrote:
I think that's precisely my point. If I have to manage the data transfer mechanism independently of the Reachability APIs in the first place, then that was why I asked the question, why use the Reachability APIs at all? I guess that was the basis for my original post. Sure, Reachability is a nice thing to have to notify me in a general sense if a given network MAY be reachable (such that I can update a UI status element), but beyond that, for actually transferring a boat load of data back/forth (which is what my app does), I pretty much have to handle network outage, reconnect logic, and IOException/EOF myself (as one would expect). I think anyone would have to handle these things. Hence my original question. Thank you for your thoughts.

Without Reachability, you'd need to start by polling connect() until it succeeded. Polling is bad. Reachability can tell you "there is no network, don't bother trying to connect" and "there's a network now, try connecting".


Of course, you still need to handle errors any time after that, and need to use different techniques to avoid polling and main-thread blocking. Reachability only helps with the part before connect() succeeds.


-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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


References: 
 >Network Reachability APIs (From: Eric Hermanson <email@hidden>)
 >Re: Network Reachability APIs (From: Luke the Hiesterman <email@hidden>)
 >Re: Network Reachability APIs (From: Eric Hermanson <email@hidden>)
 >Re: Network Reachability APIs (From: Luke the Hiesterman <email@hidden>)
 >Re: Network Reachability APIs (From: Eric Hermanson <email@hidden>)
 >Re: Network Reachability APIs (From: Luke the Hiesterman <email@hidden>)
 >Re: Network Reachability APIs (From: Eric Hermanson <email@hidden>)
 >Re: Network Reachability APIs (From: Luke the Hiesterman <email@hidden>)
 >Re: Network Reachability APIs (From: Eric Hermanson <email@hidden>)

  • Prev by Date: Re: Network Reachability APIs
  • Next by Date: Re: CGRectUnion with one empty Rectangle
  • Previous by thread: Re: Network Reachability APIs
  • Next by thread: Re: Network Reachability APIs
  • Index(es):
    • Date
    • Thread