Re: An API for Airplane mode on iOS?
Re: An API for Airplane mode on iOS?
- Subject: Re: An API for Airplane mode on iOS?
- From: Jens Alfke <email@hidden>
- Date: Mon, 08 Feb 2016 23:02:17 -0800
> On Feb 8, 2016, at 9:45 PM, Glenn L. Austin <email@hidden> wrote:
>
> According to the docs on Reachability (possibly lost in the mists of time...), Reachability isn't really designed to tell you whether your net access *will* succeed, but to give you reasons that your last access *failed.*
It’s not that surprising. There’s no guarantee that any IP packet will make it across the network, and no way to tell whether a host really is reachable without actually sending a packet to it (and back.) So the only way Reachability could tell you an access *will* succeed would be if it were constantly pinging the server, which is obviously impractical.
All Reachability tells you is whether there is an active network interface that can be used to route a packet one hop toward the desired host.
—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