Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 81492c8a authored by Rob Swindell's avatar Rob Swindell 💬

Add original XMODEM send/receive protocol options.

Previously, SyncTERM only supported the more modern XMODEM-1K uploads and XMODEM-CRC downloads. This commit adds support for XMODEM-128 uploads and XMODEM-Checksum downloads.
parent b3fdafc6
......@@ -818,7 +818,8 @@ void begin_upload(struct bbslist *bbs, BOOL autozm, int lastch)
char *opts[6]={
"ZMODEM"
,"YMODEM"
,"XMODEM"
,"XMODEM-1K"
,"XMODEM-128"
,"ASCII"
,"Raw"
,""
......@@ -888,9 +889,12 @@ void begin_upload(struct bbslist *bbs, BOOL autozm, int lastch)
xmodem_upload(bbs, fp, path, XMODEM|SEND, lastch);
break;
case 3:
ascii_upload(fp);
xmodem_upload(bbs, fp, path, XMODEM|SEND|XMODEM_128B, lastch);
break;
case 4:
ascii_upload(fp);
break;
case 5:
raw_upload(fp);
break;
default:
......@@ -912,7 +916,8 @@ void begin_download(struct bbslist *bbs)
"ZMODEM"
,"YMODEM-g"
,"YMODEM"
,"XMODEM"
,"XMODEM-CRC"
,"XMODEM-CHKSUM"
,""
};
struct text_info txtinfo;
......@@ -924,10 +929,10 @@ void begin_download(struct bbslist *bbs)
gettextinfo(&txtinfo);
savscrn = savescreen();
setfont(0, FALSE, 1);
setfont(0, FALSE, 2);
setfont(0, FALSE, 3);
setfont(0, FALSE, 4);
setfont(0, FALSE, 1);
setfont(0, FALSE, 2);
setfont(0, FALSE, 3);
setfont(0, FALSE, 4);
init_uifc(FALSE, FALSE);
......@@ -951,6 +956,10 @@ void begin_download(struct bbslist *bbs)
if(uifc.input(WIN_MID|WIN_SAV,0,0,"Filename",path,sizeof(path),0)!=-1)
xmodem_download(bbs, XMODEM|CRC|RECV,path);
break;
case 4:
if(uifc.input(WIN_MID|WIN_SAV,0,0,"Filename",path,sizeof(path),0)!=-1)
xmodem_download(bbs, XMODEM|RECV,path);
break;
}
hold_update=old_hold;
uifcbail();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment