2008-01-05 11:26:56 +00:00
|
|
|
/* <!-- copyright */
|
|
|
|
/*
|
|
|
|
* aria2 - The high speed download utility
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Tatsuhiro Tsujikawa
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
* In addition, as a special exception, the copyright holders give
|
|
|
|
* permission to link the code of portions of this program with the
|
|
|
|
* OpenSSL library under certain conditions as described in each
|
|
|
|
* individual source file, and distribute linked combinations
|
|
|
|
* including the two.
|
|
|
|
* You must obey the GNU General Public License in all respects
|
|
|
|
* for all of the code used other than OpenSSL. If you modify
|
|
|
|
* file(s) with this exception, you may extend this exception to your
|
|
|
|
* version of the file(s), but you are not obligated to do so. If you
|
|
|
|
* do not wish to do so, delete this exception statement from your
|
|
|
|
* version. If you delete this exception statement from all source
|
|
|
|
* files in the program, then also delete it here.
|
|
|
|
*/
|
|
|
|
/* copyright --> */
|
|
|
|
|
|
|
|
#define TEXT_DIR \
|
|
|
|
_(" -d, --dir=DIR The directory to store the downloaded file.")
|
|
|
|
#define TEXT_OUT \
|
|
|
|
_(" -o, --out=FILE The file name of the downloaded file.")
|
|
|
|
#define TEXT_LOG \
|
|
|
|
_(" -l, --log=LOG The file name of the log file. If '-' is\n"\
|
|
|
|
" specified, log is written to stdout.")
|
|
|
|
#define TEXT_DAEMON \
|
2009-09-19 09:12:51 +00:00
|
|
|
_(" -D, --daemon Run as daemon. The current working directory will\n"\
|
|
|
|
" be changed to \"/\" and standard input, standard\n"\
|
|
|
|
" output and standard error will be redirected to\n"\
|
|
|
|
" \"/dev/null\".")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_SPLIT \
|
2008-06-09 13:10:24 +00:00
|
|
|
_(" -s, --split=N Download a file using N connections. If more\n"\
|
|
|
|
" than N URLs are given, first N URLs are used and\n"\
|
|
|
|
" remaining URLs are used for backup. If less than\n"\
|
2008-06-25 15:07:30 +00:00
|
|
|
" N URLs are given, those URLs are used more than\n"\
|
|
|
|
" once so that N connections total are made\n"\
|
2008-11-11 11:55:23 +00:00
|
|
|
" simultaneously. Please see -j option too.\n"\
|
|
|
|
" Please note that in Metalink download, this\n"\
|
|
|
|
" option has no effect and use -C option instead.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_RETRY_WAIT \
|
|
|
|
_(" --retry-wait=SEC Set the seconds to wait to retry after an error\n"\
|
2008-09-22 09:26:57 +00:00
|
|
|
" has occured.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_TIMEOUT \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" -t, --timeout=SEC Set timeout in seconds.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_MAX_TRIES \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" -m, --max-tries=N Set number of tries. 0 means unlimited.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_HTTP_PROXY \
|
2008-11-04 14:08:26 +00:00
|
|
|
_(" --http-proxy=PROXY Use this proxy server for HTTP.\n"\
|
|
|
|
" See also --all-proxy option.\n"\
|
|
|
|
" This affects all URLs.")
|
|
|
|
#define TEXT_HTTPS_PROXY \
|
|
|
|
_(" --https-proxy=PROXY Use this proxy server for HTTPS.\n"\
|
|
|
|
" See also --all-proxy option.\n"\
|
|
|
|
" This affects all URLs.")
|
|
|
|
#define TEXT_FTP_PROXY \
|
|
|
|
_(" --ftp-proxy=PROXY Use this proxy server for FTP.\n"\
|
|
|
|
" See also --all-proxy option.\n"\
|
|
|
|
" This affects all URLs.")
|
|
|
|
#define TEXT_ALL_PROXY \
|
2008-12-01 16:44:23 +00:00
|
|
|
_(" --all-proxy=PROXY Use this proxy server for all protocols.\n"\
|
2008-11-04 14:08:26 +00:00
|
|
|
" You can override this setting and specify a\n"\
|
2008-12-02 10:54:21 +00:00
|
|
|
" proxy server for a particular protocol using\n"\
|
2008-11-04 14:08:26 +00:00
|
|
|
" --http-proxy, --https-proxy and --ftp-proxy\n"\
|
|
|
|
" options.\n"\
|
|
|
|
" This affects all URLs.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_HTTP_USER \
|
|
|
|
_(" --http-user=USER Set HTTP user. This affects all URLs.")
|
|
|
|
#define TEXT_HTTP_PASSWD \
|
|
|
|
_(" --http-passwd=PASSWD Set HTTP password. This affects all URLs.")
|
2008-11-04 14:20:12 +00:00
|
|
|
#define TEXT_PROXY_METHOD \
|
|
|
|
_(" --proxy-method=METHOD Set the method to use in proxy request.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_REFERER \
|
|
|
|
_(" --referer=REFERER Set Referer. This affects all URLs.")
|
|
|
|
#define TEXT_FTP_USER \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" --ftp-user=USER Set FTP user. This affects all URLs.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_FTP_PASSWD \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" --ftp-passwd=PASSWD Set FTP password. This affects all URLs.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_FTP_TYPE \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" --ftp-type=TYPE Set FTP transfer type.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_FTP_PASV \
|
2008-11-16 04:41:07 +00:00
|
|
|
_(" -p, --ftp-pasv[=true|false] Use the passive mode in FTP. If false is given,\n"\
|
|
|
|
" the active mode will be used.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_LOWEST_SPEED_LIMIT \
|
|
|
|
_(" --lowest-speed-limit=SPEED Close connection if download speed is lower than\n"\
|
|
|
|
" or equal to this value(bytes per sec).\n"\
|
|
|
|
" 0 means aria2 does not have a lowest speed limit.\n"\
|
|
|
|
" You can append K or M(1K = 1024, 1M = 1024K).\n"\
|
2008-09-22 09:26:57 +00:00
|
|
|
" This option does not affect BitTorrent downloads.")
|
2009-02-28 11:48:26 +00:00
|
|
|
#define TEXT_MAX_OVERALL_DOWNLOAD_LIMIT \
|
|
|
|
_(" --max-overall-download-limit=SPEED Set max overall download speed in bytes/sec.\n"\
|
2008-01-05 11:26:56 +00:00
|
|
|
" 0 means unrestricted.\n"\
|
2009-02-28 11:48:26 +00:00
|
|
|
" You can append K or M(1K = 1024, 1M = 1024K).\n"\
|
|
|
|
" To limit the download speed per download, use\n"\
|
|
|
|
" --max-download-limit option.")
|
|
|
|
#define TEXT_MAX_DOWNLOAD_LIMIT \
|
|
|
|
_(" --max-download-limit=SPEED Set max download speed per each download in\n"\
|
|
|
|
" bytes/sec. 0 means unrestricted.\n"\
|
|
|
|
" You can append K or M(1K = 1024, 1M = 1024K).\n"\
|
|
|
|
" To limit the overall download speed, use\n"\
|
|
|
|
" --max-overall-download-limit option.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_FILE_ALLOCATION \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" --file-allocation=METHOD Specify file allocation method.\n"\
|
|
|
|
" 'none' doesn't pre-allocate file space. 'prealloc'\n"\
|
|
|
|
" pre-allocates file space before download begins.\n"\
|
|
|
|
" This may take some time depending on the size of\n"\
|
2009-03-25 05:43:07 +00:00
|
|
|
" the file.\n"\
|
|
|
|
" If you are using newer file systems such as ext4\n"\
|
|
|
|
" (with extents support), btrfs or xfs, 'falloc' is\n"\
|
|
|
|
" your best choice. It allocates large(few GiB)\n"\
|
|
|
|
" files almost instantly. Don't use 'falloc' with\n"\
|
|
|
|
" legacy file systems such as ext3 because it takes\n"\
|
|
|
|
" almost same time as 'prealloc' and it blocks aria2\n"\
|
|
|
|
" entirely until allocation finishes. 'falloc' may\n"\
|
|
|
|
" not be available if your system doesn't have\n"\
|
2009-03-25 06:05:59 +00:00
|
|
|
" posix_fallocate() function.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_NO_FILE_ALLOCATION_LIMIT \
|
|
|
|
_(" --no-file-allocation-limit=SIZE No file allocation is made for files whose\n"\
|
|
|
|
" size is smaller than SIZE.\n"\
|
|
|
|
" You can append K or M(1K = 1024, 1M = 1024K).")
|
|
|
|
# define TEXT_ENABLE_DIRECT_IO \
|
|
|
|
_(" --enable-direct-io[=true|false] Enable directI/O, which lowers cpu usage while\n"\
|
|
|
|
" allocating files.\n"\
|
|
|
|
" Turn off if you encounter any error")
|
|
|
|
#define TEXT_ALLOW_OVERWRITE \
|
2009-05-27 12:58:33 +00:00
|
|
|
_(" --allow-overwrite=true|false If false is given, and a file already exists but\n"\
|
|
|
|
" the corresponding control file (filename.aria2)\n"\
|
|
|
|
" doesn't exist, then aria2 will not re-download\n"\
|
|
|
|
" the file. See also --auto-file-renaming option.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_ALLOW_PIECE_LENGTH_CHANGE \
|
|
|
|
_(" --allow-piece-length-change=true|false If false is given, aria2 aborts download\n"\
|
|
|
|
" when a piece length is different from one in\n"\
|
|
|
|
" a control file. If true is given, you can proceed\n"\
|
|
|
|
" but some download progress will be lost.")
|
|
|
|
#define TEXT_FORCE_SEQUENTIAL \
|
|
|
|
_(" -Z, --force-sequential[=true|false] Fetch URIs in the command-line sequentially\n"\
|
|
|
|
" and download each URI in a separate session, like\n"\
|
2008-09-22 09:26:57 +00:00
|
|
|
" the usual command-line download utilities.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_AUTO_FILE_RENAMING \
|
|
|
|
_(" --auto-file-renaming[=true|false] Rename file name if the same file already\n"\
|
|
|
|
" exists. This option works only in http(s)/ftp\n"\
|
|
|
|
" download.\n"\
|
|
|
|
" The new file name has a dot and a number(1..9999)\n"\
|
2008-09-22 09:26:57 +00:00
|
|
|
" appended.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_PARAMETERIZED_URI \
|
|
|
|
_(" -P, --parameterized-uri[=true|false] Enable parameterized URI support.\n"\
|
|
|
|
" You can specify set of parts:\n"\
|
|
|
|
" http://{sv1,sv2,sv3}/foo.iso\n"\
|
|
|
|
" Also you can specify numeric sequences with step\n"\
|
|
|
|
" counter:\n"\
|
|
|
|
" http://host/image[000-100:2].img\n"\
|
|
|
|
" A step counter can be omitted.\n"\
|
|
|
|
" If all URIs do not point to the same file, such\n"\
|
|
|
|
" as the second example above, -Z option is\n"\
|
2008-09-22 09:26:57 +00:00
|
|
|
" required.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_ENABLE_HTTP_KEEP_ALIVE \
|
2008-05-06 15:26:43 +00:00
|
|
|
_(" --enable-http-keep-alive[=true|false] Enable HTTP/1.1 persistent connection.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_ENABLE_HTTP_PIPELINING \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" --enable-http-pipelining[=true|false] Enable HTTP/1.1 pipelining.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_CHECK_INTEGRITY \
|
2008-11-16 08:06:56 +00:00
|
|
|
_(" -V, --check-integrity[=true|false] Check file integrity by validating piece\n"\
|
|
|
|
" hashes. This option has effect only in BitTorrent\n"\
|
2008-01-05 11:26:56 +00:00
|
|
|
" and Metalink downloads with chunk checksums.\n"\
|
|
|
|
" Use this option to re-download a damaged portion\n"\
|
2009-01-18 09:04:46 +00:00
|
|
|
" of a file. See also --bt-hash-check-seed option.")
|
|
|
|
#define TEXT_BT_HASH_CHECK_SEED \
|
|
|
|
_(" --bt-hash-check-seed[=true|false] If true is given, after hash check using\n"\
|
|
|
|
" --check-integrity option and file is complete,\n"\
|
|
|
|
" continue to seed file. If you want to check file\n"\
|
|
|
|
" and download it only when it is damaged or\n"\
|
|
|
|
" incomplete, set this option to false.\n"\
|
|
|
|
" This option has effect only on BitTorrent\n"\
|
|
|
|
" download.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_REALTIME_CHUNK_CHECKSUM \
|
2008-12-01 16:44:23 +00:00
|
|
|
_(" --realtime-chunk-checksum=true|false Validate chunk of data by calculating\n"\
|
|
|
|
" checksum while downloading a file if chunk\n"\
|
2008-12-16 16:10:42 +00:00
|
|
|
" checksums are provided.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_CONTINUE \
|
|
|
|
_(" -c, --continue Continue downloading a partially downloaded\n"\
|
|
|
|
" file. Use this option to resume a download\n"\
|
|
|
|
" started by a web browser or another program\n"\
|
|
|
|
" which downloads files sequentially from the\n"\
|
|
|
|
" beginning. Currently this option is only\n"\
|
|
|
|
" applicable to http(s)/ftp downloads.")
|
|
|
|
#define TEXT_USER_AGENT \
|
|
|
|
_(" -U, --user-agent=USER_AGENT Set user agent for http(s) downloads.")
|
|
|
|
#define TEXT_NO_NETRC \
|
|
|
|
_(" -n, --no-netrc Disables netrc support.")
|
|
|
|
#define TEXT_INPUT_FILE \
|
|
|
|
_(" -i, --input-file=FILE Downloads URIs found in FILE. You can specify\n"\
|
|
|
|
" multiple URIs for a single entity: separate\n"\
|
|
|
|
" URIs on a single line using the TAB character.\n"\
|
2008-11-13 15:36:36 +00:00
|
|
|
" Reads input from stdin when '-' is specified.\n"\
|
|
|
|
" The additional out and dir options can be\n"\
|
|
|
|
" specified after each line of URIs. This optional\n"\
|
|
|
|
" line must start with white space(s). See INPUT\n"\
|
|
|
|
" FILE section of man page for details.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_MAX_CONCURRENT_DOWNLOADS \
|
2008-06-29 13:52:39 +00:00
|
|
|
_(" -j, --max-concurrent-downloads=N Set maximum number of parallel downloads for\n"\
|
2008-11-11 11:55:23 +00:00
|
|
|
" every static (HTTP/FTP) URL, torrent and metalink.\n"\
|
|
|
|
" See also -s and -C options.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_LOAD_COOKIES \
|
2008-08-23 16:09:43 +00:00
|
|
|
_(" --load-cookies=FILE Load Cookies from FILE using the Firefox3 format\n"\
|
|
|
|
" and Mozilla/Firefox(1.x/2.x)/Netscape format.")
|
2009-05-22 14:51:57 +00:00
|
|
|
#define TEXT_SAVE_COOKIES \
|
|
|
|
_(" --save-cookies=FILE Save Cookies to FILE in Mozilla/Firefox(1.x/2.x)/\n"\
|
|
|
|
" Netscape format. If FILE already exists, it is\n"\
|
|
|
|
" overwritten. Session Cookies are also saved and\n"\
|
|
|
|
" their expiry values are treated as 0.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_SHOW_FILES \
|
|
|
|
_(" -S, --show-files Print file listing of .torrent or .metalink file\n"\
|
|
|
|
" and exit. More detailed information will be listed\n"\
|
|
|
|
" in case of torrent file.")
|
|
|
|
#define TEXT_SELECT_FILE \
|
2008-12-01 16:44:23 +00:00
|
|
|
_(" --select-file=INDEX... Set file to download by specifying its index.\n"\
|
2008-01-05 11:26:56 +00:00
|
|
|
" You can find the file index using the\n"\
|
|
|
|
" --show-files option. Multiple indexes can be\n"\
|
|
|
|
" specified by using ',', for example: \"3,6\".\n"\
|
|
|
|
" You can also use '-' to specify a range: \"1-5\".\n"\
|
|
|
|
" ',' and '-' can be used together.\n"\
|
|
|
|
" When used with the -M option, index may vary\n"\
|
|
|
|
" depending on the query(see --metalink-* options).")
|
|
|
|
#define TEXT_TORRENT_FILE \
|
|
|
|
_(" -T, --torrent-file=TORRENT_FILE The path to the .torrent file.")
|
|
|
|
#define TEXT_FOLLOW_TORRENT \
|
|
|
|
_(" --follow-torrent=true|false|mem If true or mem is specified, when a file\n"\
|
|
|
|
" whose suffix is .torrent or content type is\n"\
|
|
|
|
" application/x-bittorrent is downloaded, aria2\n"\
|
|
|
|
" parses it as a torrent file and downloads files\n"\
|
|
|
|
" mentioned in it.\n"\
|
|
|
|
" If mem is specified, a torrent file is not\n"\
|
|
|
|
" written to the disk, but is just kept in memory.\n"\
|
|
|
|
" If false is specified, the action mentioned above\n"\
|
|
|
|
" is not taken.")
|
2009-03-11 15:49:31 +00:00
|
|
|
#define TEXT_DIRECT_FILE_MAPPING \
|
|
|
|
_(" --direct-file-mapping=true|false Directly read from and write to each file\n"\
|
|
|
|
" mentioned in .torrent file.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_LISTEN_PORT \
|
|
|
|
_(" --listen-port=PORT... Set TCP port number for BitTorrent downloads.\n"\
|
|
|
|
" Multiple ports can be specified by using ',',\n"\
|
|
|
|
" for example: \"6881,6885\". You can also use '-'\n"\
|
|
|
|
" to specify a range: \"6881-6999\". ',' and '-' can\n"\
|
|
|
|
" be used together.")
|
2008-12-10 14:14:11 +00:00
|
|
|
#define TEXT_MAX_OVERALL_UPLOAD_LIMIT \
|
|
|
|
_(" --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/sec.\n"\
|
2008-01-05 11:26:56 +00:00
|
|
|
" 0 means unrestricted.\n"\
|
2008-12-10 14:14:11 +00:00
|
|
|
" You can append K or M(1K = 1024, 1M = 1024K).\n"\
|
|
|
|
" To limit the upload speed per torrent, use\n"\
|
2009-02-28 11:48:26 +00:00
|
|
|
" --max-upload-limit option.")
|
2008-12-10 14:14:11 +00:00
|
|
|
#define TEXT_MAX_UPLOAD_LIMIT \
|
|
|
|
_(" -u, --max-upload-limit=SPEED Set max upload speed per each torrent in\n"\
|
|
|
|
" bytes/sec. 0 means unrestricted.\n"\
|
|
|
|
" You can append K or M(1K = 1024, 1M = 1024K).\n"\
|
|
|
|
" To limit the overall upload speed, use\n"\
|
|
|
|
" --max-overall-upload-limit option.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_SEED_TIME \
|
|
|
|
_(" --seed-time=MINUTES Specify seeding time in minutes. Also see the\n"\
|
|
|
|
" --seed-ratio option.")
|
|
|
|
#define TEXT_SEED_RATIO \
|
|
|
|
_(" --seed-ratio=RATIO Specify share ratio. Seed completed torrents\n"\
|
2008-12-01 16:44:23 +00:00
|
|
|
" until share ratio reaches RATIO.\n"\
|
|
|
|
" You are strongly encouraged to specify equals or\n"\
|
|
|
|
" more than 1.0 here. Specify 0.0 if you intend to\n"\
|
|
|
|
" do seeding regardless of share ratio.\n" \
|
2008-01-05 11:26:56 +00:00
|
|
|
" If --seed-time option is specified along with\n"\
|
|
|
|
" this option, seeding ends when at least one of\n"\
|
|
|
|
" the conditions is satisfied.")
|
|
|
|
#define TEXT_PEER_ID_PREFIX \
|
2009-07-05 05:34:29 +00:00
|
|
|
_(" --peer-id-prefix=PEER_ID_PREFIX Specify the prefix of peer ID. The peer ID in\n"\
|
2008-01-05 11:26:56 +00:00
|
|
|
" BitTorrent is 20 byte length. If more than 20\n"\
|
2009-10-05 13:04:06 +00:00
|
|
|
" bytes are specified, only first 20 bytes are\n"\
|
|
|
|
" used. If less than 20 bytes are specified, random\n"\
|
|
|
|
" byte data are added to make its length 20 bytes.")
|
2008-01-05 16:02:25 +00:00
|
|
|
#define TEXT_ENABLE_PEER_EXCHANGE \
|
2008-02-18 17:37:54 +00:00
|
|
|
_(" --enable-peer-exchange[=true|false] Enable Peer Exchange extension.")
|
2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added DHT functionality, compatible with mainline.
DHT is disabled by default. To enable it, give --enable-dht to
aria2c.
You may need to specify entry point to DHT network using
--dht-entry-point. DHT uses UDP port to listen incoming message.
Use --dht-listen-port to specify port number. Make sure that
your
firewall configuration can pass through UDP traffic to the port.
The routing table is saved in $HOME/.aria2/dht.dat.
* src/DHT*
* src/BNode.{h, cc}
* src/PeerInteractionCommand.cc: enable DHT functionality for a
particular torrent.
* src/Data.cc: Rewritten ctor.
* src/OptionHandlerFactory.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/DefaultBtInteractive.cc: Send port message if dht is
enabled.
* src/RequestGroup.cc: Initialize DHT functionality. When
download
ends, remove BtContext from DHTPeerAnnounceStorage.
* src/BtPortMessage.{h, cc}: Rewritten.
* src/message.h
* src/OptionHandlerImpl.cc
* src/option_processing.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/Dictionary.{h, cc} (remove): New function.
* src/prefs.h
* src/DefaultBtMessageFactory.h
* src/BtHandshakeMessage.cc
* src/ActivePeerConnectionCommand.cc
* src/SocketCore.{h, cc}: Added datagram socket support.
* src/DefaultBtMessageFactory.cc
* src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
Create DHT commands.
* src/BtMessageFactory.h
* src/PeerMessageUtil.{h, cc}
2008-02-01 17:36:33 +00:00
|
|
|
#define TEXT_ENABLE_DHT \
|
|
|
|
_(" --enable-dht[=true|false] Enable DHT functionality.")
|
|
|
|
#define TEXT_DHT_LISTEN_PORT \
|
2008-02-21 14:23:36 +00:00
|
|
|
_(" --dht-listen-port=PORT... Set UDP listening port for DHT.\n"\
|
2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added DHT functionality, compatible with mainline.
DHT is disabled by default. To enable it, give --enable-dht to
aria2c.
You may need to specify entry point to DHT network using
--dht-entry-point. DHT uses UDP port to listen incoming message.
Use --dht-listen-port to specify port number. Make sure that
your
firewall configuration can pass through UDP traffic to the port.
The routing table is saved in $HOME/.aria2/dht.dat.
* src/DHT*
* src/BNode.{h, cc}
* src/PeerInteractionCommand.cc: enable DHT functionality for a
particular torrent.
* src/Data.cc: Rewritten ctor.
* src/OptionHandlerFactory.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/DefaultBtInteractive.cc: Send port message if dht is
enabled.
* src/RequestGroup.cc: Initialize DHT functionality. When
download
ends, remove BtContext from DHTPeerAnnounceStorage.
* src/BtPortMessage.{h, cc}: Rewritten.
* src/message.h
* src/OptionHandlerImpl.cc
* src/option_processing.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/Dictionary.{h, cc} (remove): New function.
* src/prefs.h
* src/DefaultBtMessageFactory.h
* src/BtHandshakeMessage.cc
* src/ActivePeerConnectionCommand.cc
* src/SocketCore.{h, cc}: Added datagram socket support.
* src/DefaultBtMessageFactory.cc
* src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
Create DHT commands.
* src/BtMessageFactory.h
* src/PeerMessageUtil.{h, cc}
2008-02-01 17:36:33 +00:00
|
|
|
" Multiple ports can be specified by using ',',\n"\
|
|
|
|
" for example: \"6881,6885\". You can also use '-'\n"\
|
|
|
|
" to specify a range: \"6881-6999\". ',' and '-' can\n"\
|
|
|
|
" be used together.")
|
|
|
|
#define TEXT_DHT_ENTRY_POINT \
|
|
|
|
_(" --dht-entry-point=HOST:PORT Set host and port as an entry point to DHT\n"\
|
|
|
|
" network.")
|
2008-10-10 11:35:32 +00:00
|
|
|
#define TEXT_DHT_FILE_PATH \
|
|
|
|
_(" --dht-file-path=PATH Change the DHT routing table file to PATH.")
|
2008-02-18 13:41:58 +00:00
|
|
|
#define TEXT_BT_MIN_CRYPTO_LEVEL \
|
|
|
|
_(" --bt-min-crypto-level=plain|arc4 Set minimum level of encryption method.\n"\
|
|
|
|
" If several encryption methods are provided by a\n"\
|
2008-12-01 16:44:23 +00:00
|
|
|
" peer, aria2 chooses the lowest one which satisfies\n"\
|
2008-02-18 17:37:54 +00:00
|
|
|
" the given level.")
|
2008-02-18 13:41:58 +00:00
|
|
|
#define TEXT_BT_REQUIRE_CRYPTO \
|
|
|
|
_(" --bt-require-crypto=true|false If true is given, aria2 doesn't accept and\n"\
|
|
|
|
" establish connection with legacy BitTorrent\n"\
|
2008-02-18 17:37:54 +00:00
|
|
|
" handshake. Thus aria2 always uses Obfuscation\n"\
|
|
|
|
" handshake.")
|
2008-06-04 10:14:48 +00:00
|
|
|
#define TEXT_BT_REQUEST_PEER_SPEED_LIMIT \
|
2009-01-15 15:57:48 +00:00
|
|
|
_(" --bt-request-peer-speed-limit=SPEED If the whole download speed of every\n"\
|
|
|
|
" torrent is lower than SPEED, aria2 temporarily\n"\
|
|
|
|
" increases the number of peers to try for more\n"\
|
|
|
|
" download speed. Configuring this option with your\n"\
|
|
|
|
" preferred download speed can increase your\n"\
|
|
|
|
" download speed in some cases.\n"\
|
2008-06-04 10:14:48 +00:00
|
|
|
" You can append K or M(1K = 1024, 1M = 1024K).")
|
2008-06-08 12:34:36 +00:00
|
|
|
#define TEXT_BT_MAX_OPEN_FILES \
|
|
|
|
_(" --bt-max-open-files=NUM Specify maximum number of files to open in each\n"\
|
|
|
|
" BitTorrent download.")
|
2008-07-12 13:54:36 +00:00
|
|
|
#define TEXT_BT_SEED_UNVERIFIED \
|
|
|
|
_(" --bt-seed-unverified[=true|false] Seed previously downloaded files without\n"\
|
|
|
|
" verifying piece hashes.")
|
2009-01-18 10:11:08 +00:00
|
|
|
#define TEXT_BT_MAX_PEERS \
|
|
|
|
_(" --bt-max-peers=NUM Specify the maximum number of peers per torrent.\n"\
|
|
|
|
" 0 means unlimited.\n"\
|
|
|
|
" See also --bt-request-peer-speed-limit option.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_METALINK_FILE \
|
|
|
|
_(" -M, --metalink-file=METALINK_FILE The file path to the .metalink file.")
|
|
|
|
#define TEXT_METALINK_SERVERS \
|
|
|
|
_(" -C, --metalink-servers=NUM_SERVERS The number of servers to connect to\n"\
|
2008-12-01 16:44:23 +00:00
|
|
|
" simultaneously. Some Metalinks regulate the\n"\
|
2008-11-11 11:55:23 +00:00
|
|
|
" number of servers to connect. aria2 strictly\n"\
|
|
|
|
" respects them. This means that if Metalink defines\n"\
|
|
|
|
" the maxconnections attribute lower than\n"\
|
|
|
|
" NUM_SERVERS, then aria2 uses the value of\n"\
|
|
|
|
" maxconnections attribute instead of NUM_SERVERS.\n"\
|
|
|
|
" See also -s and -j options.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_METALINK_VERSION \
|
|
|
|
_(" --metalink-version=VERSION The version of the file to download.")
|
|
|
|
#define TEXT_METALINK_LANGUAGE \
|
|
|
|
_(" --metalink-language=LANGUAGE The language of the file to download.")
|
|
|
|
#define TEXT_METALINK_OS \
|
|
|
|
_(" --metalink-os=OS The operating system of the file to download.")
|
|
|
|
#define TEXT_METALINK_LOCATION \
|
|
|
|
_(" --metalink-location=LOCATION[,...] The location of the preferred server.\n"\
|
2008-12-01 16:44:23 +00:00
|
|
|
" A comma-delimited list of locations is\n"\
|
2008-01-05 11:26:56 +00:00
|
|
|
" acceptable.")
|
|
|
|
#define TEXT_METALINK_PREFERRED_PROTOCOL \
|
2008-12-02 10:54:21 +00:00
|
|
|
_(" --metalink-preferred-protocol=PROTO Specify preferred protocol. Specify 'none'\n"\
|
2008-09-22 10:31:00 +00:00
|
|
|
" if you don't have any preferred protocol.")
|
2008-01-05 11:26:56 +00:00
|
|
|
#define TEXT_FOLLOW_METALINK \
|
|
|
|
_(" --follow-metalink=true|false|mem If true or mem is specified, when a file\n"\
|
2009-10-25 14:43:15 +00:00
|
|
|
" whose suffix is .metalink or content type of\n"\
|
2008-01-05 11:26:56 +00:00
|
|
|
" application/metalink+xml is downloaded, aria2\n"\
|
|
|
|
" parses it as a metalink file and downloads files\n"\
|
|
|
|
" mentioned in it.\n"\
|
|
|
|
" If mem is specified, a metalink file is not\n"\
|
|
|
|
" written to the disk, but is just kept in memory.\n"\
|
|
|
|
" If false is specified, the action mentioned above\n"\
|
|
|
|
" is not taken.")
|
|
|
|
#define TEXT_METALINK_ENABLE_UNIQUE_PROTOCOL \
|
|
|
|
_(" --metalink-enable-unique-protocol=true|false If true is given and several\n"\
|
|
|
|
" protocols are available for a mirror in a metalink\n"\
|
|
|
|
" file, aria2 uses one of them.\n"\
|
|
|
|
" Use --metalink-preferred-protocol option to\n"\
|
|
|
|
" specify the preference of protocol.")
|
|
|
|
#define TEXT_VERSION \
|
|
|
|
_(" -v, --version Print the version number and exit.")
|
|
|
|
#define TEXT_HELP \
|
2009-09-18 12:55:34 +00:00
|
|
|
_(" -h, --help[=TAG|KEYWORD] Print usage and exit.\n"\
|
2009-09-18 12:51:34 +00:00
|
|
|
" The help messages are classified with tags. A tag\n"\
|
|
|
|
" starts with \"#\". For example, type \"--help=#http\"\n"\
|
|
|
|
" to get the usage for the options tagged with\n"\
|
|
|
|
" \"#http\". If non-tag word is given, print the usage\n"\
|
|
|
|
" for the options whose name includes that word.")
|
2008-01-11 14:50:34 +00:00
|
|
|
#define TEXT_NO_CONF \
|
|
|
|
_(" --no-conf Disable loading aria2.conf file.")
|
|
|
|
#define TEXT_CONF_PATH \
|
|
|
|
_(" --conf-path=PATH Change the configuration file path to PATH.")
|
2008-02-11 05:07:08 +00:00
|
|
|
#define TEXT_STOP \
|
2008-02-20 12:33:16 +00:00
|
|
|
_(" --stop=SEC Stop application after SEC seconds has passed.\n" \
|
2008-02-11 05:07:08 +00:00
|
|
|
" If 0 is given, this feature is disabled.")
|
2008-04-20 06:30:44 +00:00
|
|
|
#define TEXT_HEADER \
|
|
|
|
_(" --header=HEADER Append HEADER to HTTP request header. You can use\n"\
|
|
|
|
" this option repeatedly to specify more than one\n"\
|
|
|
|
" header:\n"\
|
|
|
|
" aria2c --header=\"X-A: b78\" --header=\"X-B: 9J1\"\n"\
|
|
|
|
" http://host/file")
|
2008-04-22 10:29:48 +00:00
|
|
|
#define TEXT_QUIET \
|
2008-12-01 16:44:23 +00:00
|
|
|
_(" -q, --quiet[=true|false] Make aria2 quiet(no console output).")
|
2008-05-08 11:18:36 +00:00
|
|
|
#define TEXT_ASYNC_DNS \
|
|
|
|
_(" --async-dns[=true|false] Enable asynchronous DNS.")
|
2008-05-09 14:44:28 +00:00
|
|
|
#define TEXT_FTP_REUSE_CONNECTION \
|
|
|
|
_(" --ftp-reuse-connection[=true|false] Reuse connection in FTP.")
|
2008-05-15 14:37:02 +00:00
|
|
|
#define TEXT_SUMMARY_INTERVAL \
|
|
|
|
_(" --summary-interval=SEC Set interval to output download progress summary.\n"\
|
|
|
|
" Setting 0 suppresses the output.")
|
2008-05-15 15:48:41 +00:00
|
|
|
#define TEXT_LOG_LEVEL \
|
|
|
|
_(" --log-level=LEVEL Set log level to output.")
|
2008-09-08 13:23:55 +00:00
|
|
|
#define TEXT_REMOTE_TIME \
|
|
|
|
_(" -R, --remote-time[=true|false] Retrieve timestamp of the remote file from the\n"\
|
|
|
|
" remote HTTP/FTP server and if it is available,\n"\
|
|
|
|
" apply it to the local file.")
|
2008-09-09 12:13:08 +00:00
|
|
|
#define TEXT_CONNECT_TIMEOUT \
|
|
|
|
_(" --connect-timeout=SEC Set the connect timeout in seconds to establish\n"\
|
|
|
|
" connection to HTTP/FTP/proxy server. After the\n"\
|
|
|
|
" connection is established, this option makes no\n"\
|
|
|
|
" effect and --timeout option is used instead.")
|
2008-09-10 14:56:44 +00:00
|
|
|
#define TEXT_MAX_FILE_NOT_FOUND \
|
2008-12-01 16:44:23 +00:00
|
|
|
_(" --max-file-not-found=NUM If aria2 receives `file not found' status from the\n"\
|
2008-09-10 14:56:44 +00:00
|
|
|
" remote HTTP/FTP servers NUM times without getting\n"\
|
|
|
|
" a single byte, then force the download to fail.\n"\
|
|
|
|
" Specify 0 to disable this option.\n"\
|
2008-12-01 16:44:23 +00:00
|
|
|
" This options is effective only when using\n"\
|
2008-09-10 14:56:44 +00:00
|
|
|
" HTTP/FTP servers.")
|
2008-09-14 13:40:25 +00:00
|
|
|
#define TEXT_URI_SELECTOR \
|
2008-09-22 09:26:57 +00:00
|
|
|
_(" --uri-selector=SELECTOR Specify URI selection algorithm.\n"\
|
2008-09-14 13:40:25 +00:00
|
|
|
" If 'inorder' is given, URI is tried in the order\n"\
|
|
|
|
" appeared in the URI list.\n"\
|
|
|
|
" If 'feedback' is given, aria2 uses download speed\n"\
|
|
|
|
" observed in the previous downloads and choose\n"\
|
|
|
|
" fastest server in the URI list. This also\n"\
|
|
|
|
" effectively skips dead mirrors. The observed\n"\
|
|
|
|
" download speed is a part of performance profile\n"\
|
|
|
|
" of servers mentioned in --server-stat-of and\n"\
|
2009-01-19 14:11:04 +00:00
|
|
|
" --server-stat-if options.\n"\
|
|
|
|
" If 'adaptive' is given, selects one of the best\n"\
|
|
|
|
" mirrors for the first and reserved connections.\n"\
|
|
|
|
" For supplementary ones, it returns mirrors which\n" \
|
|
|
|
" has not been tested yet, and if each of them has\n"\
|
|
|
|
" already been tested, returns mirrors which has to\n"\
|
|
|
|
" be tested again. Otherwise, it doesn't select\n"\
|
|
|
|
" anymore mirrors. Like 'feedback', it uses a\n"\
|
|
|
|
" performance profile of servers.")
|
2008-09-14 13:40:25 +00:00
|
|
|
#define TEXT_SERVER_STAT_OF \
|
|
|
|
_(" --server-stat-of=FILE Specify the filename to which performance profile\n"\
|
|
|
|
" of the servers is saved. You can load saved data\n"\
|
|
|
|
" using --server-stat-if option.")
|
|
|
|
#define TEXT_SERVER_STAT_IF \
|
|
|
|
_(" --server-stat-if=FILE Specify the filename to load performance profile\n"\
|
|
|
|
" of the servers. The loaded data will be used in\n"\
|
|
|
|
" some URI selector such as 'feedback'.\n"\
|
|
|
|
" See also --uri-selector option")
|
|
|
|
#define TEXT_SERVER_STAT_TIMEOUT \
|
|
|
|
_(" --server-stat-timeout=SEC Specifies timeout in seconds to invalidate\n"\
|
|
|
|
" performance profile of the servers since the last\n"\
|
|
|
|
" contact to them.")
|
2008-10-13 13:07:53 +00:00
|
|
|
#define TEXT_AUTO_SAVE_INTERVAL \
|
|
|
|
_(" --auto-save-interval=SEC Save a control file(*.aria2) every SEC seconds.\n"\
|
|
|
|
" If 0 is given, a control file is not saved during\n"\
|
|
|
|
" download. aria2 saves a control file when it stops\n"\
|
|
|
|
" regardless of the value.")
|
2008-11-08 13:21:32 +00:00
|
|
|
#define TEXT_CERTIFICATE \
|
|
|
|
_(" --certificate=FILE Use the client certificate in FILE.\n"\
|
|
|
|
" The certificate must be in PEM format.\n"\
|
|
|
|
" You may use --private-key option to specify the\n"\
|
|
|
|
" private key.")
|
|
|
|
#define TEXT_PRIVATE_KEY \
|
|
|
|
_(" --private-key=FILE Use the private key in FILE.\n"\
|
|
|
|
" The private key must be decrypted and in PEM\n"\
|
|
|
|
" format. See also --certificate option.")
|
2008-11-09 07:36:44 +00:00
|
|
|
#define TEXT_CA_CERTIFICATE \
|
|
|
|
_(" --ca-certificate=FILE Use the certificate authorities in FILE to verify\n"\
|
|
|
|
" the peers. The certificate file must be in PEM\n"\
|
|
|
|
" format and can contain multiple CA certificates.\n"\
|
|
|
|
" Use --check-certificate option to enable\n"\
|
|
|
|
" verification.")
|
|
|
|
#define TEXT_CHECK_CERTIFICATE \
|
|
|
|
_(" --check-certificate[=true|false] Verify the peer using certificates specified\n"\
|
|
|
|
" in --ca-certificate option.")
|
2008-11-09 08:23:11 +00:00
|
|
|
#define TEXT_NO_PROXY \
|
2008-12-01 16:44:23 +00:00
|
|
|
_(" --no-proxy=DOMAINS Specify comma separated hostnames or domains where\n"\
|
|
|
|
" proxy should not be used.")
|
2008-12-29 14:05:39 +00:00
|
|
|
#define TEXT_USE_HEAD \
|
|
|
|
_(" --use-head[=true|false] Use HEAD method for the first request to the HTTP\n"\
|
|
|
|
" server.")
|
2009-01-15 15:23:16 +00:00
|
|
|
#define TEXT_EVENT_POLL \
|
|
|
|
_(" --event-poll=POLL Specify the method for polling events.")
|
2009-05-09 14:01:35 +00:00
|
|
|
#define TEXT_XML_RPC_LISTEN_PORT \
|
|
|
|
_(" --xml-rpc-listen-port=PORT Specify a port number for XML-RPC server to listen\n"\
|
|
|
|
" to.")
|
|
|
|
#define TEXT_ENABLE_XML_RPC \
|
|
|
|
_(" --enable-xml-rpc[=true|false] Enable XML-RPC server.\n"\
|
2009-05-09 15:38:23 +00:00
|
|
|
" It is strongly recommended to set username and\n"\
|
|
|
|
" password using --xml-rpc-user and --xml-rpc-passwd\n"\
|
|
|
|
" option. See also --xml-rpc-listen-port option.")
|
2009-05-26 14:38:11 +00:00
|
|
|
#define TEXT_XML_RPC_MAX_REQUEST_SIZE \
|
|
|
|
_(" --xml-rpc-max-request-size=SIZE Set max size of XML-RPC request. If aria2\n"\
|
2009-05-27 12:51:12 +00:00
|
|
|
" detects the request is more than SIZE bytes, it\n"\
|
2009-05-26 14:38:11 +00:00
|
|
|
" drops connection.")
|
2009-05-09 15:38:23 +00:00
|
|
|
#define TEXT_XML_RPC_USER \
|
|
|
|
_(" --xml-rpc-user=USER Set XML-RPC user.")
|
|
|
|
#define TEXT_XML_RPC_PASSWD \
|
|
|
|
_(" --xml-rpc-passwd=PASSWD Set XML-RPC password.")
|
2009-02-04 14:11:30 +00:00
|
|
|
#define TEXT_BT_EXTERNAL_IP \
|
|
|
|
_(" --bt-external-ip=IPADDRESS Specify the external IP address to report to a\n"\
|
|
|
|
" BitTorrent tracker. Although this function is\n"\
|
|
|
|
" named 'external', it can accept any kind of IP\n"\
|
|
|
|
" addresses.")
|
2009-02-19 12:02:22 +00:00
|
|
|
#define TEXT_HTTP_AUTH_CHALLENGE \
|
|
|
|
_(" --http-auth-challenge[=true|false] Send HTTP authorization header only when it\n"\
|
|
|
|
" is requested by the server. If false is set, then\n"\
|
|
|
|
" authorization header is always sent to the server.\n"\
|
|
|
|
" There is an exception: if username and password\n"\
|
|
|
|
" are embedded in URI, authorization header is\n"\
|
|
|
|
" always sent to the server regardless of this\n"\
|
|
|
|
" option.")
|
2009-03-07 03:10:53 +00:00
|
|
|
#define TEXT_INDEX_OUT \
|
|
|
|
_(" -O, --index-out=INDEX=PATH Set file path for file with index=INDEX. You can\n"\
|
|
|
|
" find the file index using the --show-files option.\n"\
|
|
|
|
" PATH is a relative path to the path specified in\n"\
|
|
|
|
" --dir option. You can use this option multiple\n"\
|
|
|
|
" times.")
|
2009-03-08 10:20:42 +00:00
|
|
|
#define TEXT_DRY_RUN \
|
|
|
|
_(" --dry-run[=true|false] If true is given, aria2 just checks whether the\n"\
|
|
|
|
" remote file is available and doesn't download\n"\
|
2009-03-13 13:29:13 +00:00
|
|
|
" data. This option has effect on HTTP/FTP download.\n"\
|
|
|
|
" BitTorrent downloads are canceled if true is\n"\
|
2009-03-08 10:20:42 +00:00
|
|
|
" specified.")
|
2009-03-20 13:44:03 +00:00
|
|
|
#define TEXT_BT_TRACKER_INTERVAL \
|
|
|
|
_(" --bt-tracker-interval=SEC Set the interval in seconds between tracker\n"\
|
|
|
|
" requests. This completely overrides interval value\n"\
|
|
|
|
" and aria2 just uses this value and ignores the\n"\
|
2009-03-22 07:27:52 +00:00
|
|
|
" min interval and interval value in the response of\n"\
|
2009-03-20 13:44:03 +00:00
|
|
|
" tracker. If 0 is set, aria2 determines interval\n"\
|
|
|
|
" based on the response of tracker and the download\n"\
|
|
|
|
" progress.")
|
2009-05-22 13:43:07 +00:00
|
|
|
#define TEXT_ON_DOWNLOAD_COMPLETE \
|
|
|
|
_(" --on-download-complete=COMMAND Set the command to be executed when download\n"\
|
|
|
|
" completes.\n"\
|
|
|
|
" See --on-download-start option for the\n"\
|
|
|
|
" requirement of COMMAND.\n"\
|
|
|
|
" See also --on-download-stop option.")
|
|
|
|
#define TEXT_ON_DOWNLOAD_START \
|
|
|
|
_(" --on-download-start=COMMAND Set the command to be executed when download\n"\
|
|
|
|
" starts up. COMMAND must take just one argument and\n"\
|
|
|
|
" GID is passed to COMMAND as a first argument.")
|
|
|
|
#define TEXT_ON_DOWNLOAD_ERROR \
|
|
|
|
_(" --on-download-error=COMMAND Set the command to be executed when download\n"\
|
|
|
|
" aborts due to error.\n"\
|
|
|
|
" See --on-download-start option for the\n"\
|
|
|
|
" requirement of COMMAND.\n"\
|
|
|
|
" See also --on-download-stop option.")
|
|
|
|
#define TEXT_ON_DOWNLOAD_STOP \
|
|
|
|
_(" --on-download-stop=COMMAND Set the command to be executed when download\n"\
|
|
|
|
" stops. You can override the command to be executed\n"\
|
|
|
|
" for particular download result using\n"\
|
|
|
|
" --on-download-complete and --on-download-error. If\n"\
|
|
|
|
" they are specified, command specified in this\n"\
|
|
|
|
" option is not executed.\n"\
|
|
|
|
" See --on-download-start option for the\n"\
|
|
|
|
" requirement of COMMAND.")
|
2009-07-05 03:11:51 +00:00
|
|
|
#define TEXT_BT_STOP_TIMEOUT \
|
2009-07-06 13:36:16 +00:00
|
|
|
_(" --bt-stop-timeout=SEC Stop BitTorrent download if download speed is 0 in\n"\
|
2009-07-15 13:12:21 +00:00
|
|
|
" consecutive SEC seconds. If 0 is given, this\n"\
|
2009-07-06 13:36:16 +00:00
|
|
|
" feature is disabled.")
|
2009-08-30 12:25:04 +00:00
|
|
|
#define TEXT_XML_RPC_LISTEN_ALL \
|
|
|
|
_(" --xml-rpc-listen-all[=true|false] Listen incoming XML-RPC requests on all\n"\
|
|
|
|
" network interfaces. If false is given, listen only\n"\
|
|
|
|
" on local loopback interface.")
|
2009-11-29 06:43:38 +00:00
|
|
|
#define TEXT_BT_PRIORITIZE_PIECE \
|
|
|
|
_(" --bt-prioritize-piece=head[=SIZE],tail[=SIZE] Try to download first and last\n"\
|
|
|
|
" pieces of each file first. The argument can\n"\
|
|
|
|
" contain 2 keywords:head and tail. To include both\n"\
|
|
|
|
" keywords, they must be separated by comma. These\n"\
|
|
|
|
" keywords can take one parameter, SIZE. For example\n"\
|
|
|
|
" , if head=SIZE is specified, pieces in the range\n"\
|
|
|
|
" of first SIZE bytes of each file get higher\n"\
|
|
|
|
" priority. tail=SIZE means the range of last SIZE\n"\
|
|
|
|
" bytes of each file. SIZE can include K or M(1K =\n"\
|
|
|
|
" 1024, 1M = 1024K).")
|
2009-12-03 14:41:08 +00:00
|
|
|
#define TEXT_INTERFACE \
|
|
|
|
_(" --interface=INTERFACE Bind sockets to given interface. You can specify\n"\
|
|
|
|
" interface name, IP address and hostname.")
|