Re: Internet Access

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 16 Jun 2000, at 18:46, David Cuny wrote:

> Kat wrote:
>
> > Plus, i'd prefer to make it's smartness a sliding
> > variable factor, such as pass the parms you feel
> > are relavant and Eu figures out what to do with them.
>
> Do you mean something like one of these:
>
>    net_read_ftp( {  NET_USERNAME, "fredcheezebits", NET_TIMEOUT 2000,
> ... } )
>    net_read_ftp( "username=fredcheezebits timeout=2000" )
>
> instead of using seperate calls, like this:
>
>    net_timeout( 2000 )
>    net_username( "fredcheezbits" )
>
> My preference is to use seperate calls, since it's a bit simpler, and
> more standard.

What if i wanted to get the main page thru the proxy at port 8082,
the frames thru the proxy at port 8080, and the gifs thru the port
80? I could fire off the mainpage get (after setting some defaults):
page = getweb("return some.domain.com myport=8082")
-- parse the page
junk = getweb("save=e:\\somedir\subdir
some.domain.com/number1.gif myport=80")

By doing it this way, you cannot change the vars out from under
the current webget, but i guess there are other way around that.
Besides, this approach can be a single function that then calls
whatever your idea is of the proper interface.

> > Not as it is (was?) in Rebol, if you needed email
> > on another port, you had to drop to writing winsock
> > code, or change the ini for it and restart Rebol.
>
> Ick. I like the idea of being able to read an INI file, though.

Well, before the webget, the app can store/read the ini file, doesn't
matter to me, just seems the read/write to the hd will take
unnecessary time, all it will be good for is saving defaults and/or
last known state.

> >> Make it cross-platform.
> > I did get two linux CDs, now if i could only find the drive.....
>
> Heh. You don't have to be the one to code it. I just want to make sure
> that the interface is designed to make it non-platform specific.
> Eventually I'll start begging Pete to code the Linux stuff, before
> work in the Real World drags him away from Euphoria forever.

Right, coordination so the function names are the same and do the
same.

> >> Are you interesting in running the project?
> > <speechless> errr,,, ok
>
> Great. I'm hacking out the read_http() routine this weekend. It looks
> like it shouldn't be too tough to convert it into read_https, read_ftp
> and read_gopher once it's up and running.

I already have read_http.

> > I have been working on it on/off for a bit, doing cleanup,
> > adding some options, but i hadn't [adding] considered ftp
> > or email to it.
>
> I figured that the Rebol list looked fairly complete, so it may as
> well be used as a model for routines. To some extent, it's redundant,
> since the destintation strings will specify the protocol:
>
>    net_read( "http://www.rapideuphoria.com/contrib.htm")

But you didn't spec what to do with the page. What if the page is
on a puter on your intranet? Rewrite the ini file, make sure it is
written, then call the net_read()?

> I'll try to read through the Rebol documentation and get a proposed
> list of routines. If we can come to agreement on the list, people can
> start hacking existing code. Maybe Mark Smith would like to take a
> stab at it, instead of having me mangle his code?
>
> You don't have to code it all yourself, just coordinate it and yell at
> people to finish up their portions. I'll volunteer for the http: bits.
>
> Eventually, you'll get tired of yelling, and code it all yourself...
> blink
>
> One thing that's I'd like to add to the function list is an 'idle'
> routine to run between grabbing chunks of files, so the user could
> watch for an escape key/update a progress bar/etc. Something like:
>
>    net_idle( routine_id( <callback name>) )

I haven't tried to code any routine_id().

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu