almost finished internal zmodem

This commit is contained in:
Michiel Broek 2004-11-21 13:43:51 +00:00
parent 5c14f4e833
commit fd0d10b7c3
3 changed files with 14 additions and 5 deletions

View File

@ -34,9 +34,18 @@ v0.71.0 27-Oct-2004
When an invalid OLR reply packet is received, it is removed When an invalid OLR reply packet is received, it is removed
from the users upload directory. from the users upload directory.
We don't reward upload time anymore, only bytes. It's more We don't reward upload time anymore, only bytes. It's more
troubles to implement right then it's worth these days. troubles to implement right then it's worth these days. This
Added internal zmodem download and upload protocol. is caused by telnet connections when we never know what the
real linespeed is with to/from the user.
Added internal zmodem download and upload protocol. Not yet
enabled for public use, this will be done when it's ready.
The receiver will accept non-standard zmodem 8k blocks. The
sender is normal zmodem or zmodem-8K.
TODO: uploads smaller then blocksize seems to fail with
Dynacomm.
With user chat, the timeout timer wasn't refreshed. With user chat, the timeout timer wasn't refreshed.
Rewrote the rewritten terminal i/o to get zmodem upload to
work.
mbnewusr: mbnewusr:
Rewrote terminal i/o. Rewrote terminal i/o.

View File

@ -440,7 +440,7 @@ int upload(up_list **upload_list)
if (*(dp->d_name) != '.') { if (*(dp->d_name) != '.') {
if (rc == 0) { if (rc == 0) {
stat(dp->d_name, &statfile); stat(dp->d_name, &statfile);
Syslog('+', "Uploaded \"%s\", %ld bytes", dp->d_name, statfile.st_size); Syslog('b', "Uploaded \"%s\", %ld bytes", dp->d_name, statfile.st_size);
sprintf(temp, "%s/%s/upl/%s", CFG.bbs_usersdir, exitinfo.Name, dp->d_name); sprintf(temp, "%s/%s/upl/%s", CFG.bbs_usersdir, exitinfo.Name, dp->d_name);
chmod(temp, 0660); chmod(temp, 0660);

View File

@ -160,7 +160,7 @@ again:
switch (zgethdr(Rxhdr)) { switch (zgethdr(Rxhdr)) {
case ZRQINIT: continue; case ZRQINIT: continue;
case ZEOF: continue; case ZEOF: continue;
case TIMEOUT: Syslog('+', "Zmodem: tryz() timeout attempt %d", n); case TIMEOUT: Syslog('z', "Zmodem: tryz() timeout attempt %d", n);
continue; continue;
case ZFILE: zconv = Rxhdr[ZF0]; case ZFILE: zconv = Rxhdr[ZF0];
if (!zconv) { if (!zconv) {
@ -291,7 +291,7 @@ nxthdr:
} }
continue; continue;
case TIMEOUT: if ( --n < 0) { case TIMEOUT: if ( --n < 0) {
Syslog('+', "Zmodem: TIMEOUT"); Syslog('z', "Zmodem: TIMEOUT");
return TERROR; return TERROR;
} }
continue; continue;