diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-28 07:58:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-28 07:58:12 +0000 |
commit | 1c90bd35e34a9a237ebde4440367322a8cc2a686 (patch) | |
tree | 2dd230b6806d31350a51ca3897d1397142f9b06e /src/fs/gnunet-download.c | |
parent | a7649a53a34e0d61f6e460be90a4ec5e10bdabc3 (diff) | |
download | gnunet-1c90bd35e34a9a237ebde4440367322a8cc2a686.tar.gz gnunet-1c90bd35e34a9a237ebde4440367322a8cc2a686.zip |
docu
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r-- | src/fs/gnunet-download.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c index bbc750026..bc98d0275 100644 --- a/src/fs/gnunet-download.c +++ b/src/fs/gnunet-download.c | |||
@@ -46,6 +46,8 @@ static unsigned int anonymity = 1; | |||
46 | 46 | ||
47 | static unsigned int parallelism = 16; | 47 | static unsigned int parallelism = 16; |
48 | 48 | ||
49 | static unsigned int request_parallelism = 4092; | ||
50 | |||
49 | static int do_recursive; | 51 | static int do_recursive; |
50 | 52 | ||
51 | static char *filename; | 53 | static char *filename; |
@@ -208,6 +210,8 @@ run (void *cls, | |||
208 | GNUNET_FS_FLAGS_NONE, | 210 | GNUNET_FS_FLAGS_NONE, |
209 | GNUNET_FS_OPTIONS_DOWNLOAD_PARALLELISM, | 211 | GNUNET_FS_OPTIONS_DOWNLOAD_PARALLELISM, |
210 | parallelism, | 212 | parallelism, |
213 | GNUNET_FS_OPTIONS_REQUEST_PARALLELISM, | ||
214 | request_parallelism, | ||
211 | GNUNET_FS_OPTIONS_END); | 215 | GNUNET_FS_OPTIONS_END); |
212 | if (NULL == ctx) | 216 | if (NULL == ctx) |
213 | { | 217 | { |
@@ -260,8 +264,12 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = { | |||
260 | 1, &GNUNET_GETOPT_set_string, &filename}, | 264 | 1, &GNUNET_GETOPT_set_string, &filename}, |
261 | {'p', "parallelism", "DOWNLOADS", | 265 | {'p', "parallelism", "DOWNLOADS", |
262 | gettext_noop | 266 | gettext_noop |
263 | ("set the maximum number of parallel downloads that are allowed"), | 267 | ("set the maximum number of parallel downloads that is allowed"), |
264 | 1, &GNUNET_GETOPT_set_uint, ¶llelism}, | 268 | 1, &GNUNET_GETOPT_set_uint, ¶llelism}, |
269 | {'r', "request-parallelism", "REQUESTS", | ||
270 | gettext_noop | ||
271 | ("set the maximum number of parallel requests for blocks that is allowed"), | ||
272 | 1, &GNUNET_GETOPT_set_uint, &request_parallelism}, | ||
265 | {'R', "recursive", NULL, | 273 | {'R', "recursive", NULL, |
266 | gettext_noop ("download a GNUnet directory recursively"), | 274 | gettext_noop ("download a GNUnet directory recursively"), |
267 | 0, &GNUNET_GETOPT_set_one, &do_recursive}, | 275 | 0, &GNUNET_GETOPT_set_one, &do_recursive}, |