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:21

> Hi Anton, > > This was very informative. To sum up ... > > (1) I should try to access to something on the internet. > For example, reading a file on my own site.
If that's the file that you want, then yes. If the resources that you want are elsewhere, then no. :) Keep in mind that accessing a file does not prove that there is a connection available to another file. Also, having successfully accessed that file, it does not prove that you can access that file again in the future. Your site might be up, another site, down. The view desktop uses that method to report whether there is a connection or not, however. (It attempts to connect to rebol.com)
> (2) Connect using API or RASDIAL.EXE (I am using Windows 2000) . > > Basically, I need a timer to check my connection and reconnect if needed. > Is it worth programming with Rebol ? > Obviously it seems more suited for a small C program. > > Thanks anyway > Patrick
I think it would be educational to see if you can do it through a windows dll call. But if you are familiar with programming c on windows, then I think that would be easier. I have not tried to do this. But you can set your dialer to connect when an application attempts to access the internet in the dialup properties. Regards, Anton.