Skip to content
Snippets Groups Projects
Commit 777950b0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Remove remnants of bi-dir file xfer support

parent 417d832d
No related branches found
No related tags found
1 merge request!123New file base
Pipeline #1638 failed
...@@ -83,8 +83,6 @@ const char* sbbs_t::protcmdline(prot_t* prot, enum XFER_TYPE type) ...@@ -83,8 +83,6 @@ const char* sbbs_t::protcmdline(prot_t* prot, enum XFER_TYPE type)
return(prot->batulcmd); return(prot->batulcmd);
case XFER_BATCH_DOWNLOAD: case XFER_BATCH_DOWNLOAD:
return(prot->batdlcmd); return(prot->batdlcmd);
case XFER_BIDIR:
return(prot->bicmd);
} }
return("invalid transfer type"); return("invalid transfer type");
......
...@@ -375,7 +375,7 @@ void sbbs_t::qwk_success(ulong msgcnt, char bi, char prepack) ...@@ -375,7 +375,7 @@ void sbbs_t::qwk_success(ulong msgcnt, char bi, char prepack)
/****************************************************************************/ /****************************************************************************/
void sbbs_t::qwk_sec() void sbbs_t::qwk_sec()
{ {
char str[256],tmp2[256],ch,bi=0; char str[256],tmp2[256],ch;
char tmp[512]; char tmp[512];
int error; int error;
int s; int s;
...@@ -390,9 +390,6 @@ void sbbs_t::qwk_sec() ...@@ -390,9 +390,6 @@ void sbbs_t::qwk_sec()
} }
for(i=0;i<cfg.total_subs;i++) for(i=0;i<cfg.total_subs;i++)
sav_ptr[i]=subscan[i].ptr; sav_ptr[i]=subscan[i].ptr;
for(i=0;i<cfg.total_prots;i++)
if(cfg.prot[i]->bicmd[0] && chk_ar(cfg.prot[i]->ar,&useron,&client))
bi++; /* number of bidirectional protocols configured */
if(useron.rest&FLAG('Q')) if(useron.rest&FLAG('Q'))
getusrsubs(); getusrsubs();
delfiles(cfg.temp_dir,ALLFILES); delfiles(cfg.temp_dir,ALLFILES);
...@@ -404,8 +401,6 @@ void sbbs_t::qwk_sec() ...@@ -404,8 +401,6 @@ void sbbs_t::qwk_sec()
ASYNC; ASYNC;
bputs(text[QWKPrompt]); bputs(text[QWKPrompt]);
sprintf(str,"?UDCSP\r%c",text[YNQP][2]); sprintf(str,"?UDCSP\r%c",text[YNQP][2]);
if(bi)
strcat(str,"B");
ch=(char)getkeys(str,0); ch=(char)getkeys(str,0);
if(ch>' ') if(ch>' ')
logch(ch,0); logch(ch,0);
......
...@@ -884,7 +884,6 @@ enum XFER_TYPE { /* Values for type in xfer_prot_select() */ ...@@ -884,7 +884,6 @@ enum XFER_TYPE { /* Values for type in xfer_prot_select() */
,XFER_DOWNLOAD ,XFER_DOWNLOAD
,XFER_BATCH_UPLOAD ,XFER_BATCH_UPLOAD
,XFER_BATCH_DOWNLOAD ,XFER_BATCH_DOWNLOAD
,XFER_BIDIR
}; };
#define L_LOGON 1 /* Logon List maintenance */ #define L_LOGON 1 /* Logon List maintenance */
......
...@@ -830,8 +830,8 @@ void xfer_opts() ...@@ -830,8 +830,8 @@ void xfer_opts()
"files either to or from a remote user. For each protocol, you can\n" "files either to or from a remote user. For each protocol, you can\n"
"specify the mnemonic (hot-key) to use to specify that protocol, the\n" "specify the mnemonic (hot-key) to use to specify that protocol, the\n"
"command line to use for uploads, downloads, batch uploads, batch\n" "command line to use for uploads, downloads, batch uploads, batch\n"
"downloads, bi-directional file transfers, support of DSZLOG, and (for\n" "downloads, support of DSZLOG, and (for *nix only) if it uses socket\n"
"*nix only) if it uses socket I/O or the more common stdio.\n" "I/O or the more common stdio.\n"
"\n" "\n"
"If the protocol doesn't support a certain method of transfer, or you\n" "If the protocol doesn't support a certain method of transfer, or you\n"
"don't wish it to be available for a certain method of transfer, leave\n" "don't wish it to be available for a certain method of transfer, leave\n"
...@@ -916,8 +916,6 @@ void xfer_opts() ...@@ -916,8 +916,6 @@ void xfer_opts()
,cfg.prot[i]->batulcmd); ,cfg.prot[i]->batulcmd);
sprintf(opt[j++],"%-30.30s%-40s","Batch Download Command Line" sprintf(opt[j++],"%-30.30s%-40s","Batch Download Command Line"
,cfg.prot[i]->batdlcmd); ,cfg.prot[i]->batdlcmd);
sprintf(opt[j++],"%-30.30s%-40s","Bi-dir Command Line"
,cfg.prot[i]->bicmd);
sprintf(opt[j++],"%-30.30s%s", "Native Executable/Script" sprintf(opt[j++],"%-30.30s%s", "Native Executable/Script"
,cfg.prot[i]->misc&PROT_NATIVE ? "Yes" : "No"); ,cfg.prot[i]->misc&PROT_NATIVE ? "Yes" : "No");
sprintf(opt[j++],"%-30.30s%s", "Supports DSZLOG" sprintf(opt[j++],"%-30.30s%s", "Supports DSZLOG"
...@@ -973,12 +971,6 @@ void xfer_opts() ...@@ -973,12 +971,6 @@ void xfer_opts()
,cfg.prot[i]->batdlcmd,sizeof(cfg.prot[i]->batdlcmd)-1,K_EDIT); ,cfg.prot[i]->batdlcmd,sizeof(cfg.prot[i]->batdlcmd)-1,K_EDIT);
break; break;
case 7: case 7:
uifc.helpbuf = SCFG_CMDLINE_PREFIX_HELP SCFG_CMDLINE_SPEC_HELP;
uifc.input(WIN_MID|WIN_SAV,0,0
,"Command"
,cfg.prot[i]->bicmd,sizeof(cfg.prot[i]->bicmd)-1,K_EDIT);
break;
case 8:
l=cfg.prot[i]->misc&PROT_NATIVE ? 0:1; l=cfg.prot[i]->misc&PROT_NATIVE ? 0:1;
l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0 l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0
,"Native Executable/Script",uifcYesNoOpts); ,"Native Executable/Script",uifcYesNoOpts);
...@@ -988,7 +980,7 @@ void xfer_opts() ...@@ -988,7 +980,7 @@ void xfer_opts()
uifc.changes=1; uifc.changes=1;
} }
break; break;
case 9: case 8:
l=cfg.prot[i]->misc&PROT_DSZLOG ? 0:1; l=cfg.prot[i]->misc&PROT_DSZLOG ? 0:1;
l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0 l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0
,"Uses DSZLOG",uifcYesNoOpts); ,"Uses DSZLOG",uifcYesNoOpts);
...@@ -998,7 +990,7 @@ void xfer_opts() ...@@ -998,7 +990,7 @@ void xfer_opts()
uifc.changes=1; uifc.changes=1;
} }
break; break;
case 10: case 9:
l=cfg.prot[i]->misc&PROT_SOCKET ? 0:1l; l=cfg.prot[i]->misc&PROT_SOCKET ? 0:1l;
l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0 l=uifc.list(WIN_MID|WIN_SAV,0,0,0,&l,0
,"Uses Socket I/O",uifcYesNoOpts); ,"Uses Socket I/O",uifcYesNoOpts);
......
...@@ -965,8 +965,6 @@ void sbbs_t::xfer_prot_menu(enum XFER_TYPE type) ...@@ -965,8 +965,6 @@ void sbbs_t::xfer_prot_menu(enum XFER_TYPE type)
continue; continue;
if(type==XFER_BATCH_DOWNLOAD && cfg.prot[i]->batdlcmd[0]==0) if(type==XFER_BATCH_DOWNLOAD && cfg.prot[i]->batdlcmd[0]==0)
continue; continue;
if(type==XFER_BIDIR && cfg.prot[i]->bicmd[0]==0)
continue;
if(printed && (cols < 80 || (printed%2)==0)) if(printed && (cols < 80 || (printed%2)==0))
CRLF; CRLF;
bprintf(text[TransferProtLstFmt],cfg.prot[i]->mnemonic,cfg.prot[i]->name); bprintf(text[TransferProtLstFmt],cfg.prot[i]->mnemonic,cfg.prot[i]->name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment