summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.cc
Commit message (Collapse)AuthorAgeFilesLines
* Added --save-session-interval optionTatsuhiro Tsujikawa2013-01-101-0/+9
| | | | | | --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-2/+13
| | | | --console-log-level option sets log level to output to console.
* Added --gid optionTatsuhiro Tsujikawa2012-12-161-0/+9
| | | | | | | | | | | 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.
* Added --disk-cache optionTatsuhiro Tsujikawa2012-12-031-0/+9
| | | | | | | | | | 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.
* mingw32: Open file using _wsopen and added --enable-mmap supportTatsuhiro Tsujikawa2012-12-011-2/+2
| | | | | | | | | | | | | | | | | I tried CreateFile but the subsequent ReadFile fails with Access Denied if sparse file is read on NTFS. I mostly reverted previous changes and use _wsopen with read/write share enabled instead of CreateFile. This change also includes --enable-mmap support for MinGW32 build. Memory mapped file may be useful for 64-bits OS and lots of RAM. Currently, FlushViewOfFile is not called during the download, so it is slightly vulnerable against sudden power loss. I found lots of read when resuming download due to page fault. So for now it is useful for the initial download. I recommend not to use --file-allocation=prealloc with --enable-mmap for MinGW32, because it triggers page faults even in the initial download. Anyway, the option is experimental.
* Added --force-save option.Tatsuhiro Tsujikawa2012-11-171-0/+13
| | | | | | | --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.
* Made --http-no-cache false by defaultTatsuhiro Tsujikawa2012-10-311-1/+1
|
* Added --rpc-save-upload-metadata optionTatsuhiro Tsujikawa2012-10-161-0/+11
| | | | | | | | | | 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/+27
| | | | | | | 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.
* Handle OptionHandlers as raw pointerTatsuhiro Tsujikawa2012-09-271-918/+914
|
* Rewritten help tags and various internal flag handling in OptionHandlerTatsuhiro Tsujikawa2012-09-231-20/+7
| | | | | Now help tags are defined as enum values to avoid vector of strings. The internal flags are represented by bitmask to shrink size.
* Added new file allocation method called 'trunc'Tatsuhiro Tsujikawa2012-08-121-4/+7
| | | | | | --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.
* Changed default Peer ID prefixTatsuhiro Tsujikawa2012-06-291-1/+5
| | | | | | | The new Peer ID prefix is "A2-$MAJOR-$MINOR-$MICRO-", where $MAJOR, $MINOR and $MICRO are the major version, the minor version and the micro version respectively. For instance, 1.15.2 release of aria2 will use "A2-1-15-2-".
* Merged Android build scriptsTatsuhiro Tsujikawa2012-06-291-0/+4
|
* Added --enable-mmap option.Tatsuhiro Tsujikawa2012-06-241-0/+15
| | | | | If this option is used, map files into memory using mmap(2). This option is experimental.
* Disable IPv6 by default only if MinGW 32bit build.Tatsuhiro Tsujikawa2012-04-081-3/+3
|
* Disable IPv6 for MinGW build by defaultTatsuhiro Tsujikawa2012-04-071-0/+10
|
* Added --bt-remove-unselected-file option.Tatsuhiro Tsujikawa2012-03-251-0/+13
| | | | | | | | 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/+9
| | | | | | | | | 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/+9
| | | | | | | | | | 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.
* Proxy URI is now constructed in getProxyUri().Tatsuhiro Tsujikawa2011-11-131-8/+8
| | | | | | | | | | The previous implementation constructs proxy URI in OptionHandler but it cannot handle with the situation when user, password and proxy URI is given various order. Now we just set rules: username set in --*-proxy-user overrides username in --*-proxy option, no matter in any order username, password and proxy URI are parsed. Likewise, password set in --*--proxy-passwd overrides password in --*-proxy option.
* --index-out option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-11-021-0/+1
| | | | | --index-out option is now available in aria2.changeOption if a download is waiting/paused in queue.
* --dir and --out option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-11-021-0/+2
| | | | | --dir and --out option is now available in aria2.changeOption if a download is waiting/paused in queue.
* Removed default value from deprecated --metalink-servers option.Tatsuhiro Tsujikawa2011-10-311-1/+1
|
* --max-connection-per-server option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-311-0/+1
| | | | | --max-connection-per-server option is now available in aria2.changeOption if a download is waiting/paused in queue.
* Deprecated --metalink-server option. Use --split option instead.Tatsuhiro Tsujikawa2011-10-301-8/+12
|
* --split option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-301-0/+1
| | | | | --split option is now available in aria2.changeOption if a download is waiting/paused in queue.
* --select-file option is now available in aria2.changeOptionTatsuhiro Tsujikawa2011-10-301-0/+1
| | | | | --select-file option is now available in aria2.changeOption if a download is waiting/paused in queue.
* Made max value of --select-file to 65535Tatsuhiro Tsujikawa2011-10-301-1/+1
|
* --lowest-speed-limit option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-291-0/+1
| | | | | --lowest-speed-limit option is now available in aria2.changeOption if a download is waiting/paused in queue.
* --checksum option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-291-0/+1
| | | | | --checksum option is now available in aria2.changeOption if download is waiting/paused in queue.
* Options for -i list is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-291-0/+88
| | | | | | | | | Options for -i list, except for PREF_CHECKSUM, PREF_DIR, PREF_DRY_RUN, PREF_INDEX_OUT, PREF_LOWEST_SPEED_LIMIT, PREF_MAX_CONNECTION_PER_SERVER, PREF_METALINK_BASE_URI, PREF_OUT, PREF_PIECE_LENGTH, PREF_SELECT_FILE, PREF_SPLIT, PREF_PAUSE and PREF_PARAMETERIZED_URI, are available in aria2.changeOption if the download is waiting state, including paused downloads.
* Disallowed checksum, index-out, out, pause and select-file option inTatsuhiro Tsujikawa2011-10-251-5/+0
| | | | aria2.changeGlobalOption.
* Made -i list options available in aria2.changeGlobalOption.Tatsuhiro Tsujikawa2011-10-221-0/+101
|
* Made --download-result, --save-session, --server-stat-of andTatsuhiro Tsujikawa2011-10-221-0/+4
| | | | --save-cookies option available in aria2.changeGlobalOption.
* Removed OptionHandler::{get,set}OptionID() and canHandle().Tatsuhiro Tsujikawa2011-10-221-2/+3
| | | | Removed typedefs in OptionHandler and NameMatchOptionHandler.
* Made --max-download-result option available in aria2.changeGlobalOption.Tatsuhiro Tsujikawa2011-10-221-0/+1
|
* Made --uri-selector option available in -i list.Tatsuhiro Tsujikawa2011-10-221-0/+1
|
* Renamed OptionHandler::setGlobalChangeOption() as setChangeGlobalOption().Tatsuhiro Tsujikawa2011-10-221-5/+5
|
* OptionHandler now knows its option can be used in -i list option,Tatsuhiro Tsujikawa2011-10-221-7/+118
| | | | | | changeable in aria2.changeOption or aria2.changeGlobalOption. OptionHandler also now its option is cumulative.
* Rewritten Option. Introduced Pref.Tatsuhiro Tsujikawa2011-10-211-2/+2
| | | | | 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-9/+12
| | | | | | | 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/+2
|
* Added #checksum help tag.Tatsuhiro Tsujikawa2011-08-231-0/+6
|
* Added --checksum option.Tatsuhiro Tsujikawa2011-08-231-0/+10
| | | | | | | | 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/+14
| | | | | | 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/+10
| | | | | | | | | | 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.
* Added --rpc-allow-origin-all option.Tatsuhiro Tsujikawa2011-08-181-0/+9
| | | | | This option adds Access-Control-Allow-Origin header field with value '*' to the RPC response.
* Make --metalink-location option available with --disable-metalinkTatsuhiro Tsujikawa2011-07-311-7/+7
|
* Set NO_DEFAULT_VALUE as the default value of --enable-direct-io.Tatsuhiro Tsujikawa2011-07-161-1/+1
|