Skip to content
Snippets Groups Projects
Commit 55296c80 authored by rswindell's avatar rswindell
Browse files

Added RecvBufSize, Streaming, and CRC32 sexyz.ini values.

parent d5b5123d
No related branches found
No related tags found
No related merge requests found
......@@ -203,9 +203,11 @@ Example .ini file (with default values given):
CrcTimeout=60 ; seconds
BlockSize=1024 ; 1024 is usually best to start with
MaxBlockSize=1024 ; 1024 is "true" Zmodem, 8192 for Zmodem-8K (ZedZap)
MaxErrors=10
CRC16=FALSE ; CRC-32 is the default
EscapeTelnetIAC=TRUE ; Send ZDLE/ZRUB1 instead of 0xff with -telnet
MaxErrors=10 ; maximum number of consecutive errors
RecvBufSize=0 ; specify non-zero for partial streaming receives
Streaming=TRUE ; set to FALSE to disable streaming (block-at-a-time)
CRC32=TRUE ; set to FALSE to force CRC-16 instead
EscapeTelnetIAC=TRUE ; send ZDLE/ZRUB1 instead of 0xff with -telnet
Compatibility
......
......@@ -1339,14 +1339,19 @@ int main(int argc, char **argv)
zm.block_size =iniReadInteger(fp,"Zmodem","BlockSize",zm.block_size); /* 1024 */
zm.max_block_size =iniReadInteger(fp,"Zmodem","MaxBlockSize",zm.max_block_size); /* 1024 or 8192 */
zm.max_errors =iniReadInteger(fp,"Zmodem","MaxErrors",zm.max_errors);
zm.recv_bufsize =iniReadInteger(fp,"Zmodem","RecvBufSize",0);
zm.no_streaming =!iniReadBool(fp,"Zmodem","Streaming",TRUE);
zm.want_fcs_16 =!iniReadBool(fp,"Zmodem","CRC32",TRUE);
zm.escape_telnet_iac =iniReadBool(fp,"Zmodem","EscapeTelnetIAC",TRUE);
zm.want_fcs_16 =iniReadBool(fp,"Zmodem","CRC16",FALSE);
if(fp!=NULL)
fclose(fp);
atexit(exiting);
if(zm.recv_bufsize > 0xffff)
zm.recv_bufsize = 0xffff;
if(outbuf_size < MIN_OUTBUF_SIZE)
outbuf_size = MIN_OUTBUF_SIZE;
else if(outbuf_size > MAX_OUTBUF_SIZE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment