summaryrefslogtreecommitdiff
path: root/src/prefs.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into random-webseedingTatsuhiro Tsujikawa2016-03-261-0/+12
|\
| * Added support for a dynamic management of the number of concurrent downloads ↵oliviercommelarbre2016-03-161-0/+6
| | | | | | | | as a function of the overall bandwidth observed
| * Add --max-mmap-limit optionTatsuhiro Tsujikawa2016-01-291-0/+2
| | | | | | | | | | | | | | | | Set the maximum file size to enable mmap (see --enable-mmap option). The file size is determined by the sum of all files contained in one download. For example, if a download contains 5 files, then file size is the total size of those files. If file size is strictly greater than the size specified in this option, mmap will be disabled.
| * Add --bt-enable-hook-after-hash-check optionTatsuhiro Tsujikawa2015-11-291-0/+2
| | | | | | | | | | | | | | This option sets flag which allows hook command invocation after hash check (see -V option) in BitTorrent download. By default, when hash check succeeds, the command given by --on-bt-download-complete is executed. To disable this action, give false to this option.
| * Add --socket-recv-buffer-size optionTatsuhiro Tsujikawa2015-11-281-0/+2
| | | | | | | | | | | | | | | | Set the maximum socket receive buffer in bytes. Specifing 0 will disable this option. This value will be set to socket file descriptor using SO_RCVBUF socket option with setsockopt() call. See GH-487 about the usecase of this option
* | Merge branch 'master' into random-webseedingTatsuhiro Tsujikawa2015-10-031-0/+4
|\|
| * Add --ssh-host-key-md optionTatsuhiro Tsujikawa2015-05-161-0/+2
| | | | | | | | | | | | | | | | | | Set checksum for SSH host public key. Use same syntax with --checksum option. TYPE is hash type. The supported hash type is sha-1 or md5. DIGEST is hex digest. For example: sha-1=b030503d4de4539dc7885e6f0f5e256704edf4c3. This option can be used to validate server's public key when SFTP is used. If this option is not set, which is default, no validation takes place.
| * multiple interface support for link aggregationSarim Khan2015-04-211-0/+2
| | | | | | | | fix: wrong variable
* | Add --stream-piece-selector=randomTatsuhiro Tsujikawa2015-02-141-0/+1
|/
* Fixed some typos in code commentsDan Fandrich2015-01-161-2/+2
|
* Add --bt-force-encryption optionTatsuhiro Tsujikawa2015-01-121-0/+2
| | | | | | | | This option requires BitTorrent message payload encryption with arc4. This is a shorthand of --bt-requre-crypto --bt-min-crypto-level=arc4. If true is given, deny legacy BitTorrent handshake and only use Obfuscation handshake and always encrypt message payload. This option defaults to false.
* Add --min-tls-version optionTatsuhiro Tsujikawa2014-12-061-0/+6
| | | | | The --min-tls-version option specifies minimum SSL/TLS version to enable. Possible Values: SSLv3, TLSv1, TLSv1.1, TLSv1.2 Default: TLSv1
* Add --bt-detach-seed-only optionTatsuhiro Tsujikawa2014-10-141-0/+2
| | | | | | | | | | This option excludes seed only downloads when counting concurrent active downloads (-j option). This means that if -j3 is given and this option is turned on and 3 downloads are active and one of those enters seed mode, then it is excluded from active download count (thus it becomes 2), and the next download waiting in queue gets started. But be aware that seeding item is still recognized as active download in RPC method.
* Try to set sane limits for RLIMIT_NO_FILENils Maier2014-07-221-0/+2
| | | | | | | E.g. on OSX the default is 256, which isn't exactly compatible with torrent downloads. Closes GH-257
* Add --pause-metadata optionTatsuhiro Tsujikawa2014-06-211-0/+2
| | | | | | | | | This option pauses downloads created as a result of metadata download. There are 3 types of metadata downloads in aria2: (1) downloading .torrent file. (2) downloading torrent metadata using magnet link. (3) downloading metalink file. These metadata downloads will generate downloads using their metadata. This option pauses these subsequent downloads.
* Merge branch 'dscp-support' of https://github.com/iavael/aria2 into ↵Tatsuhiro Tsujikawa2014-02-041-0/+2
|\ | | | | | | | | | | | | | | | | iavael-dscp-support Conflicts: src/prefs.cc src/prefs.h src/usage_text.h
| * Added DSCP supportAlexander Amanuel2014-01-281-0/+2
| |
* | Implement new RPC authorization using --rpc-secret optionTatsuhiro Tsujikawa2014-02-021-0/+2
| |
* | Add --enable-color option to enable/disable terminal color outputTatsuhiro Tsujikawa2014-01-301-0/+2
|/
* Introduce PrefPtr typedefNils Maier2013-09-191-193/+195
|
* LibUV: Implement LibuvEventPollNils Maier2013-04-101-0/+1
| | | | | | | | | LibUV event will use the best available polling method on a system, kind of like aria2 does already with the different *EventPoll implementations. However, libuv may support different/newer polling mechanisms; for example on Windows it will use IO Completion Ports which are superior to select() ;)
* Remove deprecated options: --enable-direct-io and --metalink-serversTatsuhiro Tsujikawa2013-04-021-4/+0
|
* Added --save-session-interval optionTatsuhiro Tsujikawa2013-01-101-0/+2
| | | | | | --save-session-interval option saves error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits.
* Added --console-log-level optionTatsuhiro Tsujikawa2013-01-051-0/+2
| | | | --console-log-level option sets log level to output to console.
* Added --gid optionTatsuhiro Tsujikawa2012-12-161-0/+2
| | | | | | | | | | | This option sets GID manually. aria2 identifies each download by the ID called GID. The GID must be hex string of 16 characters, thus [0-9a-zA-Z] are allowed and leading zeros must not be stripped. The GID all 0 is reserved and must not be used. The GID must be unique, otherwise error is reported and the download is not added. This option is useful when restoring the sessions saved using --save-session option. If this option is not used, new GID is generated by aria2.
* Release statically allocated resources for prefs and optionsTatsuhiro Tsujikawa2012-12-081-0/+4
| | | | | | | Not realeasing these resources does not hurt the correctness of the program, but memory leak detection tool, such as valgrind, reports it as potential memory leak. It is better to distinguish it from the real ones.
* Added --disk-cache optionTatsuhiro Tsujikawa2012-12-031-0/+2
| | | | | | | | | | This option enables disk cache. If SIZE is 0, the disk cache is disabled. This feature caches the downloaded data in memory, which grows to at most SIZE bytes. The cache storage is created for aria2 instance and shared by all downloads. The one advantage of the disk cache is reduce the disk seek time because the data is written in larger unit and it is reordered by the offset of the file. If the underlying file is heavily fragmented it is not the case.
* Added --force-save option.Tatsuhiro Tsujikawa2012-11-171-0/+2
| | | | | | | --force-save option saves download with --save-session option even if the download is completed or removed. This may be useful to save BitTorrent seeding which is recognized as completed state. The default value is false.
* Added --rpc-save-upload-metadata optionTatsuhiro Tsujikawa2012-10-161-0/+2
| | | | | | | | | | If true is given, which is default, save the uploaded torrent or metalink metadata in the directory specified by --dir option. The filename consists of SHA1-hash hex string of metadata plus extension. For torrent, the extension is '.torrent'. For metalink, it is '.meta4'. If false is given to this option, the downloads added by aria2.addTorrent or aria2.addMetalink will not be saved by --save-session option.
* RPC over SSL/TLS transportTatsuhiro Tsujikawa2012-09-301-0/+6
| | | | | | | To enable RPC over SSL/TLS, specify server certificate and private key using --rpc-certificate and --rpc-private-key options and enable --rpc-secure option. After the encryption is enabled, use https and wss scheme to access RPC server.
* Added new file allocation method called 'trunc'Tatsuhiro Tsujikawa2012-08-121-0/+1
| | | | | | --file-allocation option can now take new value 'trunc'. 'trunc' uses ftruncate() system call or platform-specific counterpart to truncate a file to a specified length.
* Added --enable-mmap option.Tatsuhiro Tsujikawa2012-06-241-0/+2
| | | | | If this option is used, map files into memory using mmap(2). This option is experimental.
* Code cleanupTatsuhiro Tsujikawa2012-06-231-4/+4
|
* Added --bt-remove-unselected-file option.Tatsuhiro Tsujikawa2012-03-251-0/+2
| | | | | | | | Removes the unselected files when download is completed in BitTorrent. To selecting files, use --select-file option. If it is not used, all files are assumed to be selected. Please use this option with care because it will actually remove files from your disk. This option is default to false.
* Added --deferred-input option.Tatsuhiro Tsujikawa2012-02-051-0/+2
| | | | | | | | | If true is given to --deferred-input option, aria2 does not read all URIs and options from file specified by -i option at startup, but it reads one by one when it needs later. This may reduce memory usage if input file contains a lot of URIs to download. If false is given, aria2 reads all URIs and options at startup. This option defaults to false.
* Added --stop-with-process=PID option.Tatsuhiro Tsujikawa2011-12-011-0/+2
| | | | | | | | | | This feature stops application when process PID is not running. This is useful if aria2 process is forked from a parent process. The parent process can fork aria2 with its own pid and when parent process exits for some reason, aria2 can detect it and shutdown itself. The code which detects whether or not given process PID is running is contributed by Emmanuel Engelhart.
* Made Pref::k_, OptionHandler::getName() and getDescription() const char*.Tatsuhiro Tsujikawa2011-11-111-2/+2
|
* Rewritten Option. Introduced Pref.Tatsuhiro Tsujikawa2011-10-211-202/+227
| | | | | Now preference key is Pref instead of just string. It has Option ID. Now option lookup and setting takes O(1) using Pref object.
* Added --piece-length option.Tatsuhiro Tsujikawa2011-09-271-1/+1
| | | | | | | This option sets a piece length for HTTP/FTP downloads. This is the boundary when aria2 splits a file. All splits occur at multiple of this length. This option will be ignored in BitTorrent downloads. It will be also ignored if Metalink file contains piece hashes.
* Added geom parameter to --stream-piece-selector option.Tatsuhiro Tsujikawa2011-08-241-1/+3
|
* Added --checksum option.Tatsuhiro Tsujikawa2011-08-231-0/+2
| | | | | | | | Added --checksum=TYPE=DIGEST option. This option sets checksum. TYPE is hash type. The supported hash type is listed in "Hash Algorithms" in "aria2c -v". DIGEST is hex digest. For example, setting sha-1 digest looks like this: sha-1=0192ba11326fe2298c8cb4de616f4d4140213838 This option applies only to HTTP(S)/FTP downloads.
* Added --hash-check-only opiton.Tatsuhiro Tsujikawa2011-08-221-0/+2
| | | | | | Added --hash-check-only opiton. If true is given, after hash check using --check-integrity option, abort download whether or not download is complete. The default value is false.
* Added --download-result option.Tatsuhiro Tsujikawa2011-08-221-0/+3
| | | | | | | | | | Added --download-result=OPT option. This option changes the way "Download Results" is formatted. If OPT is 'default', print GID, status, average download speed and path/URI. If multiple files are involved, path/URI of first requested file is printed and remaining ones are omitted. If OPT is 'full', print GID, status, average download speed, percentage of progress and path/URI. The percentage of progress and path/URI are printed for each requested file in each row.
* Removed unused preferences.Tatsuhiro Tsujikawa2011-08-191-12/+0
|
* Added --rpc-allow-origin-all option.Tatsuhiro Tsujikawa2011-08-181-0/+2
| | | | | This option adds Access-Control-Allow-Origin header field with value '*' to the RPC response.
* Added --pause option.Tatsuhiro Tsujikawa2011-06-161-0/+2
| | | | | | | This option pauses download after added. This option is effective only when --enable-rpc=true is given. When --save-session option is used and there are paused downloads, they are saved with --pause=true so that it will become paused state when the session is recovered.
* Added --truncate-console-readout option.Tatsuhiro Tsujikawa2011-06-151-0/+2
| | | | | | This option truncates console readout to fit in a single line. This is default. Give false value to this option to tell aria2 not to truncate console readout.
* Added --stream-piece-selector option.Tatsuhiro Tsujikawa2011-06-111-0/+3
| | | | | | | | | | | | | | This option specifies piece selection algorithm used in HTTP/FTP download. Piece means fixed length segment which is downloaded in parallel in segmented download. If 'default' is given, aria2 selects piece so that it reduces the number of establishing connection. This is reasonable default behaviour because establishing connection is an expensive operation. If 'inorder' is given, aria2 selects piece which has minimum index. Index=0 means first of the file. This will be useful to view movie while downloading it. --enable-http-pipelining option may be useful to reduce reconnection overhead. Please note that aria2 honors --min-split-size option, so it will be necessary to specify a reasonable value to --min-split-size option.
* Added --metalink-base-uri option.Tatsuhiro Tsujikawa2011-05-141-0/+2
| | | | | | --metalink-uri option specifies base URI to resolve relative URI in metalink file stored in local disk. If URI points to a directory, URI must end with '/'.
* Added --show-console-readout option.Tatsuhiro Tsujikawa2011-03-271-0/+2
| | | | This option toggles appearance of console readout.