Updated transfers

This commit is contained in:
Michiel Broek 2004-11-25 21:00:32 +00:00
parent 5a474aacfa
commit fbe265e949
3 changed files with 8 additions and 5 deletions

View File

@ -389,7 +389,7 @@ int upload(up_list **upload_list)
struct timeval starttime, endtime;
struct timezone tz;
unsigned long Size = 0;
int err, Count = 0, rc = 0;
int err, Count = 0, rc = 0, want1k = FALSE;
up_list *tmp, *ta;
/*
@ -427,7 +427,9 @@ int upload(up_list **upload_list)
if (strncasecmp(sProtName, "ymodem", 6) == 0)
protocol = ZM_YMODEM;
rc = zmrcvfiles();
if (strstr(sProtName, "1K") || strstr(sProtName, "1k"))
want1k = TRUE;
rc = zmrcvfiles(want1k);
Syslog('b', "Begin dir processing");
if ((dirp = opendir(".")) == NULL) {

View File

@ -59,13 +59,14 @@ int wcgetsec(size_t *, char *, unsigned int);
* Length is indeterminate as long as less than Blklen
* A null string represents no more files (YMODEM)
*/
int wcrxpn(char *rpn)
int wcrxpn(char *rpn, int want1k)
{
register int c;
size_t Blklen = 0; /* record length of received packets */
Crcflg = want1k
purgeline(0);
Syslog('x', "%s: wcrxpn()", protname());
Syslog('x', "%s: wcrxpn() crc=%s", protname(), Crcflg ? "true":"false");
et_tu:
Firstsec = TRUE;

View File

@ -8,7 +8,7 @@
#define RETRYMAX 10
int wcrxpn(char *);
int wcrxpn(char *, int);
int wcrx(void);
#endif