Hi all.

I'm trying to implement some robust network-failure handling in my
iPhone app.  The test of whether my host is reachable returns YES even
when connected to a router that has no Internet connection.  Apple's
docs say, "A remote host is considered reachable when a data packet,
sent by an application into the network stack, can leave the local
device."  And indeed this is how it behaves.  You can pull the cable
out of your router, and as long as your phone is connected to it, the
host test will claim any host is reachable.

So why take an address at all?  I'm using Donoho's enhancement of
Apple's Reachability example, and I don't see the difference between
the general "Internet" test (reachabilityForInternetConnection) and a
specific-host test (reachabilityWithHostName).  And how are people
truly testing the availability of a host, given the bogus nature of
these results?

Thanks!

Gavin
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to