FROM : Jerry Krinock
DATE : Sat Jul 15 21:47:19 2006
on 06/07/14 22:57, Gerriet M. Denkmann at <email_removed> 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).
DATE : Sat Jul 15 21:47:19 2006
on 06/07/14 22:57, Gerriet M. Denkmann at <email_removed> 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).
| Related mails | Author | Date |
|---|---|---|
| Gerriet M. Denkman… | Jul 14, 11:12 | |
| Jerry Krinock | Jul 14, 15:25 | |
| Adam R. Maxwell | Jul 14, 15:33 | |
| Gerriet M. Denkman… | Jul 14, 23:06 | |
| Jerry Krinock | Jul 15, 02:01 | |
| Gerriet M. Denkman… | Jul 15, 07:57 | |
| Jerry Krinock | Jul 15, 21:47 |






Cocoa mail archive

