From 6e38cc9048a2ab2a28dca6cb357b091a3ee4317c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 27 Nov 2009 23:46:29 +0000 Subject: - Markus Koetter provided a polished and updated version of Chad Monroe's TFTP rework patch that now integrates TFTP properly into libcurl so that it can be used non-blocking with the multi interface and more. BLKSIZE also works. The --tftp-blksize option was added to allow setting the TFTP BLKSIZE from the command line. --- src/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index b9ac7adb4..b5c1d89b7 100644 --- a/src/main.c +++ b/src/main.c @@ -602,7 +602,7 @@ struct Configurable { char *ftp_account; /* for ACCT */ char *ftp_alternative_to_user; /* send command if USER/PASS fails */ int ftp_filemethod; - + long tftp_blksize; /* TFTP BLKSIZE option */ bool ignorecl; /* --ignore-content-length */ bool disable_sessionid; @@ -877,6 +877,7 @@ static void help(void) " --stderr Where to redirect stderr. - means stdout", " --tcp-nodelay Use the TCP_NODELAY option", " -t/--telnet-option Set telnet option", + " --tftp-blksize Set TFTP BLKSIZE option (must be >512)", " -z/--time-cond