Binkp update to allow extra m_file command
This commit is contained in:
parent
24cc63cd91
commit
f645f1a8e6
@ -2,13 +2,14 @@ $Id$
|
|||||||
|
|
||||||
v0.39.5 24-Dec-2003
|
v0.39.5 24-Dec-2003
|
||||||
|
|
||||||
|
|
||||||
mbcico:
|
mbcico:
|
||||||
Binkp code cleanup.
|
Binkp code cleanup.
|
||||||
|
Allow m_file command in binkp during file transfer in progress.
|
||||||
|
|
||||||
script:
|
script:
|
||||||
Fixed NetBSD init script
|
Fixed NetBSD init script
|
||||||
|
|
||||||
|
|
||||||
v0.39.4 08-Dec-2003 - 24-Dec-2003
|
v0.39.4 08-Dec-2003 - 24-Dec-2003
|
||||||
|
|
||||||
general:
|
general:
|
||||||
|
@ -1491,6 +1491,19 @@ int binkp_batch(file_list *to_send)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MM_FILE: Syslog('b', "Binkp: got FILE: %s", bp.rxbuf+1);
|
case MM_FILE: Syslog('b', "Binkp: got FILE: %s", bp.rxbuf+1);
|
||||||
|
if (bp.RxState == RxReceData ) {
|
||||||
|
/*
|
||||||
|
* If we get a m_file command during receive, the current file is
|
||||||
|
* considered interrupted. Save the partial received file and accept
|
||||||
|
* the new file. After this file the transmitter should continue
|
||||||
|
* with the original file and this mailer should send m_get to set
|
||||||
|
* the offset to the point were we left off.
|
||||||
|
*/
|
||||||
|
Syslog('+', "Binkp: new file during receive, saving %s", bp.rname);
|
||||||
|
closefile();
|
||||||
|
bp.rxfp = NULL;
|
||||||
|
bp.RxState = RxWaitFile;
|
||||||
|
}
|
||||||
if ((bp.RxState == RxWaitFile) || (bp.RxState == RxEndOfBatch)) {
|
if ((bp.RxState == RxWaitFile) || (bp.RxState == RxEndOfBatch)) {
|
||||||
bp.RxState = RxAcceptFile;
|
bp.RxState = RxAcceptFile;
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user