Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Internet connection

From: antonr:iinet:au at: 8-May-2003 2:22

Well, how much do you need to know about an operating system and a user's network setup to provide a seamless interface? That is, so that we can know for certain whether we are "connected" or "not connected" ? These are fuzzy edged things. There are a multitude of possible network setups. How do we determine when a network connection has been lost? If a remote machine that is serving us internet has crashed and is definitely down, we still have to wait 30 seconds for a timeout to occur before our software can be sure that there's a problem (for example). So, for 30 seconds we are unsure whether there is a network connection or not. How do we determine the "default" connection ? I have a dialup connection that I don't use anymore, and an ethernet connection to a gateway that has a connection to an adsl modem. How does the software know which one I would like to use ? Think about what code would have to be written to try to figure out which connection to favour (for every OS, and each windows 95/98/ME/NT/2k/XP is different). The reason it hasn't been done is because it is a large task. Some programs just try to use the default browser's default connection setting. But that is not a sure way to connect. I can imagine a set of dll libraries, one for each platform, that allow to reliably connect to the internet and check for a connection. Perhaps one day we will see this. Regards, Anton.