almost finished internal zmodem
This commit is contained in:
parent
5c14f4e833
commit
fd0d10b7c3
13
ChangeLog
13
ChangeLog
@ -34,9 +34,18 @@ v0.71.0 27-Oct-2004
|
||||
When an invalid OLR reply packet is received, it is removed
|
||||
from the users upload directory.
|
||||
We don't reward upload time anymore, only bytes. It's more
|
||||
troubles to implement right then it's worth these days.
|
||||
Added internal zmodem download and upload protocol.
|
||||
troubles to implement right then it's worth these days. This
|
||||
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.
|
||||
Rewrote the rewritten terminal i/o to get zmodem upload to
|
||||
work.
|
||||
|
||||
mbnewusr:
|
||||
Rewrote terminal i/o.
|
||||
|
@ -440,7 +440,7 @@ int upload(up_list **upload_list)
|
||||
if (*(dp->d_name) != '.') {
|
||||
if (rc == 0) {
|
||||
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);
|
||||
chmod(temp, 0660);
|
||||
|
||||
|
@ -160,7 +160,7 @@ again:
|
||||
switch (zgethdr(Rxhdr)) {
|
||||
case ZRQINIT: continue;
|
||||
case ZEOF: continue;
|
||||
case TIMEOUT: Syslog('+', "Zmodem: tryz() timeout attempt %d", n);
|
||||
case TIMEOUT: Syslog('z', "Zmodem: tryz() timeout attempt %d", n);
|
||||
continue;
|
||||
case ZFILE: zconv = Rxhdr[ZF0];
|
||||
if (!zconv) {
|
||||
@ -291,7 +291,7 @@ nxthdr:
|
||||
}
|
||||
continue;
|
||||
case TIMEOUT: if ( --n < 0) {
|
||||
Syslog('+', "Zmodem: TIMEOUT");
|
||||
Syslog('z', "Zmodem: TIMEOUT");
|
||||
return TERROR;
|
||||
}
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user