kelvin@arizona.UUCP (Kelvin Nilsen) (10/19/84)
Can someone refer me to a good article on the xmodem protocol for file transfer or pseudo-code in an algorithmic language? Please don't send BASIC listings. Thanks in advance. Kelvin Nilsen at U of Arizona
khasin@alberta.UUCP (Khasin Teow) (11/12/84)
....
> Kelvin Nilsen at U of Arizona
i normally would reply directly to the person who posted the news.
however most of my replies seem to come back to me. so if some of
you would bear with me:
...
i have been using the following algorithm:
XMODEM protocol
The description here in pseudo-code is derived from Appendix B of
Freeware's PC-TALK III User's Guide
XMODEM (receiver)
BEGIN
Send NAK every 10 sec.
Read a character
WHILE (character is SOH)
Receive the package
(character 1 is block number,
character 2 is 1's compliment of char 1,
next 128 characters are data,
last character is check sum.)
IF the package is ok
Send an ACK
ELSE
Send a NAK
Read a character
ENDWHILE
IF (character is EOT)
Send an ACK
ELSE
??? (ignore it)
END of XMODEM
i hope you find it a useful pointer.