Re: Internet Access

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

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.

> 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.

>> 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.

>> 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 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")

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>) )


Comments?

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu