Post by dthartman on Mar 22, 2007 19:05:27 GMT -5
Ok. This is for the experts. I never wrote an X-Modem terminal program, except for the ones that you could type in from a BASIC listing, i.e. xmodem 64 3.6 by Karl Schmitt...
cbm.videocam.net.au/term.php
However, I have written my own PETSCII BBS server using Java (JDK v1.3.1_16) and MySQL.
telnet://retrogradebbs.com:6400
Sorry, no ASCII/ANSI support yet, so connect using a CG term.
Okay, so I found the ONLY example of a Java xmodem implementation on the web by Fred Potter
students.washington.edu/fpotter/code.shtml
From what I can see, this is a SERIAL RS-232 implementation and only works for receiving a file, which is a start.
Can one of you CODE GURUS take a look at that and the source code for my server project here at:
www.retrogradebbs.com/petsciiserver
and figure out how to code the actual xmodem imlementation in Java for receiving a file?
From what I can remember about xmodem...
You have to enter the filename of the file being sent, since it has no way of knowing what type of file it is, and if it is either PRG or SEQ before the transfer can start.
Then, a NAK is sent to start the transfer, right?
I cannot believe that there is not one example on the net of how to implement xmodem using Java for a tcp server. It is a black art.
I bet Jim Brain knows how to do it.
Here is what I hacked together, but it does not work.
retrogradebbs.com/xmodemserver
What I would like to do, is incorporate the xmodem file transfer capabilities for my PETSCII BBS Server if that is possible.
I am not sure about how the ASCII translation works, if that is a CG term routine that simply converts the PETSCII to ASCII before sending the file, or if a BBS actually does that. I assume it would just work with ASCII emulation as the default, and the term does the conversion if needed.
Anyone interested in helping me on this project. This is beyond my capabilities without help from those who know how to write xmodem enabled software for the Commodore 64/128 and who understand TCP client/server coding in Java.
I have done some of the research needed as you can see to start the project...
METAL MAGE
www.retrogradebbs.com
telnet://retrogradebbs.com
cbm.videocam.net.au/term.php
However, I have written my own PETSCII BBS server using Java (JDK v1.3.1_16) and MySQL.
telnet://retrogradebbs.com:6400
Sorry, no ASCII/ANSI support yet, so connect using a CG term.
Okay, so I found the ONLY example of a Java xmodem implementation on the web by Fred Potter
students.washington.edu/fpotter/code.shtml
From what I can see, this is a SERIAL RS-232 implementation and only works for receiving a file, which is a start.
Can one of you CODE GURUS take a look at that and the source code for my server project here at:
www.retrogradebbs.com/petsciiserver
and figure out how to code the actual xmodem imlementation in Java for receiving a file?
From what I can remember about xmodem...
You have to enter the filename of the file being sent, since it has no way of knowing what type of file it is, and if it is either PRG or SEQ before the transfer can start.
Then, a NAK is sent to start the transfer, right?
I cannot believe that there is not one example on the net of how to implement xmodem using Java for a tcp server. It is a black art.
I bet Jim Brain knows how to do it.
Here is what I hacked together, but it does not work.
retrogradebbs.com/xmodemserver
What I would like to do, is incorporate the xmodem file transfer capabilities for my PETSCII BBS Server if that is possible.
I am not sure about how the ASCII translation works, if that is a CG term routine that simply converts the PETSCII to ASCII before sending the file, or if a BBS actually does that. I assume it would just work with ASCII emulation as the default, and the term does the conversion if needed.
Anyone interested in helping me on this project. This is beyond my capabilities without help from those who know how to write xmodem enabled software for the Commodore 64/128 and who understand TCP client/server coding in Java.
I have done some of the research needed as you can see to start the project...
METAL MAGE
www.retrogradebbs.com
telnet://retrogradebbs.com