squidgy
20th May 2001, 12:21
Does anyone know of any?
You see, the thread at http://65.108.99.49/showthread.php&threadid=352 reminded me a while ago that I was going to try to make my own download manager.
Thing is, though, I'm pretty hopeless at learning new programming languages, but I did do some BASIC programming at school. So I like QBASIC and I like YaBasic.
However, so far the only interpreter I've found that allows you to open TCP communication channels (either as a server or a client) is called Rebol. So what I have tried to do is to write a sort of interfacing program for Rebol which uses temporary files on the hard disk to control TCP communications. That is, it reads info on which port to open a server on, or which IP/port to connect as a client to from a temporary file, and it reads the information it needs to send to the remote host to another temporary file, and it writes the data it receives in blocks to another temporary file on the hard disk.
The idea of doing this was that absolutely any programming language could then be used to handle TCP communications, simply by handling these temporary files using its ordinary binary file handling routines. This would allow me to write fully functioning FTP, email and news clients and servers in QBASIC or Yabasic. The BASIC program would do all of the interpreting of the protocol commands, server messages and user interface, and decide what to reply to the remote host with accordingly, and the file-TCP interface written in Rebol would simply facilitate it.
Thing is, I think that's a very messy way of doing it, and it's bound to go wrong if I'm not careful about naming files, appending them or deleting them. Does anyone know if there's a better way without me having to learn more languages? Thanks. :)
oh .... this would strictly be for personal use only. There's no way that I'd be so lame as to try to sell an FTP client or server that actually worked in this way!
You see, the thread at http://65.108.99.49/showthread.php&threadid=352 reminded me a while ago that I was going to try to make my own download manager.
Thing is, though, I'm pretty hopeless at learning new programming languages, but I did do some BASIC programming at school. So I like QBASIC and I like YaBasic.
However, so far the only interpreter I've found that allows you to open TCP communication channels (either as a server or a client) is called Rebol. So what I have tried to do is to write a sort of interfacing program for Rebol which uses temporary files on the hard disk to control TCP communications. That is, it reads info on which port to open a server on, or which IP/port to connect as a client to from a temporary file, and it reads the information it needs to send to the remote host to another temporary file, and it writes the data it receives in blocks to another temporary file on the hard disk.
The idea of doing this was that absolutely any programming language could then be used to handle TCP communications, simply by handling these temporary files using its ordinary binary file handling routines. This would allow me to write fully functioning FTP, email and news clients and servers in QBASIC or Yabasic. The BASIC program would do all of the interpreting of the protocol commands, server messages and user interface, and decide what to reply to the remote host with accordingly, and the file-TCP interface written in Rebol would simply facilitate it.
Thing is, I think that's a very messy way of doing it, and it's bound to go wrong if I'm not careful about naming files, appending them or deleting them. Does anyone know if there's a better way without me having to learn more languages? Thanks. :)
oh .... this would strictly be for personal use only. There's no way that I'd be so lame as to try to sell an FTP client or server that actually worked in this way!