On 2/22/10, David Anderson <[email protected]> wrote: > Nicolás Alvarez wrote: >> On 2/22/10, [email protected] <[email protected]> wrote: >>> They tell you nothing about the connection of the LAN to >>> the internet. They cannot even reliably tell if a computer has a >>> connection to the internet. >> >> Do you know of any API in any operating system that can do that? > > We looked very hard for such an API and never found one. > That led to the "reference site" thing.
My question was a bit rhetorical. it's not *possible* for an OS to reliably know if there is an Internet connection without either polling a known site (bad idea to implement in an operating system, it'd be a DDoS to the poor "known site"), or having a zillion plugins for the different ways an Internet connection may be set up (eg. for my connection, you'd have to HTML-scrape http://192.168.100.1/, the web configuration page of my Motorola SurfBoard cable modem), which is totally impractical. -- Nicolas _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
