on 06/07/14 22:57, Gerriet M. Denkmann at email@hidden wrote:
> Near Computer (which has its modem also not connected):
> You might observe a delay of 2 minutes.
Sorry, I misunderstood.
I would interpret the problem this way: As far as your computer is
concerned, you DO have internet access, but if it's only route is through
another computer, acting as a router I guess, that is broken, then that's a
different problem which cannot be directly detected. So, I would do this
algorithm:
Start an NSURLConnection to apple.com
Start an NSURLConnection to google.com
Start an NSURLConnection to yahoo.com
Wait some reasonable time, maybe 10 seconds. If you don't receive any
responses by then, declare no internet connection (or else the world as we
know it has come to an end).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden