summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Added #deprecated help tag.Tatsuhiro Tsujikawa2011-07-161-0/+2
|
* Removed ENABLE_DIRECT_IO macro.Tatsuhiro Tsujikawa2011-07-161-2/+0
|
* Deprecated --enable-direct-io option.Tatsuhiro Tsujikawa2011-07-161-5/+8
| | | | | Modified DeprecatedOptionHandler so that it can have replacing OptionHandler.
* Removed deprecated options.Tatsuhiro Tsujikawa2011-07-161-76/+0
| | | | | Removed --enable-xml-rpc, --xml-rpc-listen-all, --xml-rpc-listen-port, --xml-rpc-max-request-size, --xml-rpc-user, --xml-rpc-passwd.
* Added --pause option.Tatsuhiro Tsujikawa2011-06-161-0/+10
| | | | | | | 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/+9
| | | | | | 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/+11
| | | | | | | | | | | | | | 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/+8
| | | | | | --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 '/'.
* Erase user and password specified in command-line from argv.Tatsuhiro Tsujikawa2011-04-221-0/+16
| | | | The user and password is masked with '*'.
* Fixed typoTatsuhiro Tsujikawa2011-03-271-1/+1
|
* Added --show-console-readout option.Tatsuhiro Tsujikawa2011-03-271-0/+8
| | | | This option toggles appearance of console readout.
* Deprecated --enable-xml-rpc and --xml-rpc-* option. IntroducedTatsuhiro Tsujikawa2011-03-141-19/+93
| | | | | | | --enable-rpc and --rpc-* option instead. --enable-xml-rpc and --xml-rpc-* option can be used but warning message will be shown. The help tag #xml-rpc was replaced with #rpc.
* Renamed classes in abstract layer of RPC service from XmlRpc* to Rpc*.Tatsuhiro Tsujikawa2011-03-141-4/+0
| | | | | Now JSON-RPC is available by default regardless of XML library. XML-RPC becomes available when XML library is available.
* Check the availability of ares_set_servers and ares_addr_node.Tatsuhiro Tsujikawa2011-02-181-0/+2
|
* Moved PREF_ASYNC_DNS_SERVER to the next to PREF_ASYNC_DNS.Tatsuhiro Tsujikawa2011-02-081-8/+8
|
* Added --async-dns-server option.Tatsuhiro Tsujikawa2011-02-081-0/+8
| | | | | | | | | | This option accepts comma separated list of DNS server address used in asynchronous DNS resolver. Usually asynchronous DNS resolver reads DNS server addresses from /etc/resolv.conf. When this option is used, it uses DNS servers specified in this option instead of ones in /etc/resolv.conf. You can specify both IPv4 and IPv6 address. This option is useful when the system does not have /etc/resolv.conf and user does not have the permission to create it.
* Changed the default value of --retry-wait to 0 for backwardTatsuhiro Tsujikawa2011-01-181-1/+1
| | | | | | compatibility. Also updated usage doc.
* Added --retry-wait option.Tatsuhiro Tsujikawa2011-01-171-0/+10
| | | | | | | | This option was once existed in aria2 but erased on 2009-09-20. Now it is resurrected once again. We choose 2 as default value, but there is no good theory behind it. Now we retry HTTP download when remote server returns 503 Service Unavailable if --retry-wait > 0. We also added error code 29: HTTP_SERVICE_UNAVAILABLE.
* 2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-231-22/+28
| | | | | | | | | | | | | Cleaned up Possible Values in usage help. More than 2 values are delimited by ", ". * src/NameMatchOptionHandler.h * src/OptionHandler.cc * src/OptionHandler.h * src/OptionHandlerFactory.cc * src/OptionHandlerImpl.cc * test/OptionHandlerTest.cc
* 2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-231-4/+8
| | | | | | | | | | | Made --allow-overwrite, --allow-piece-length-change, --realtime-chunk-checksum and --bt-require-crypto take optional argument. Fixed usage doc for --metalink-enable-unique-protocol. * doc/aria2c.1.txt * src/OptionHandlerFactory.cc * src/usage_text.h
* 2010-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-231-9/+9
| | | | | | | | | | Made --continue, --daemon, --no-conf, --no-netrc and --show-files option take optional argument. * doc/aria2c.1.txt * src/OptionHandlerFactory.cc * src/usage_text.h
* 2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-201-18/+19
| | | | | | Replaced StringFormat with fmt
* 2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-10-301-2/+4
| | | | | | | Tagged -x and -k option as #basic * src/OptionHandlerFactory.cc
* 2010-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-09-111-50/+50
| | | | | | | | | | | | | | | | | | | | | | | Replaced V_TRUE with A2_V_TRUE. Replaced V_FALSE with A2_V_FALSE. * src/AbstractCommand.cc * src/HttpResponseCommand.cc * src/Option.cc * src/OptionHandlerFactory.cc * src/OptionHandlerImpl.h * src/TrackerWatcherCommand.cc * src/download_helper.cc * src/main.cc * src/prefs.cc * src/prefs.h * test/AuthConfigFactoryTest.cc * test/DefaultBtProgressInfoFileTest.cc * test/DownloadHelperTest.cc * test/HttpRequestTest.cc * test/OptionHandlerTest.cc * test/UTMetadataPostDownloadHandlerTest.cc * test/XmlRpcMethodTest.cc
* 2010-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-09-111-2/+4
| | | | | | | | | | Added short option -k for --min-split-size option and -x for --max-connection-per-server option. Raised maximum value of --max-connection-per-server up to 16. * src/OptionHandlerFactory.cc * src/usage_text.h
* 2010-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-09-101-0/+9
| | | | | | | | | | | | | | | | | | | | | Added --max-download-result=NUM option. This option sets maximum number of download result kept in memory. The download results are completed/error/ removed downloads. The download results are stored in FIFO queue and it can store at most NUM download results. When queue is full and new download result is created, oldest download result is removed from the front of the queue and new one is pushed to the back. Setting big number in this option may result high memory consumption after thousands of downloads. Specifying 0 means no download result is kept. Default value is 1000. * src/OptionHandlerFactory.cc * src/RequestGroupMan.cc * src/RequestGroupMan.h * src/prefs.cc * src/prefs.h * src/usage_text.h
* 2010-08-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-08-241-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added --bt-tracker and --bt-exclude-tracker option. In --bt-tracker option, you can specify comma separated list of additional BitTorrent tracker's announce URI. These URIs are not affected by --bt-exclude-tracker option because they are added after URIs in --bt-exclude-tracker option are removed. In --bt-exclude-tracker option, you can specify comma separated list of BitTorrent tracker's announce URI to remove. You can use special value '*' which matches all URIs, thus removes all announce URIs. When specifying '*' in shell command-line, don't forget to escape or quote it. * src/BtDependency.cc * src/OptionHandlerFactory.cc * src/UTMetadataPostDownloadHandler.cc * src/bittorrent_helper.cc * src/bittorrent_helper.h * src/download_helper.cc * src/download_helper.h * src/prefs.cc * src/prefs.h * src/usage_text.h * test/BittorrentHelperTest.cc * test/DownloadHelperTest.cc
* 2010-08-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-08-071-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added IPv6 DHT. Added --dht-entry-porint6, --dht-file-path6, --dht-listen-addr6 and --enable-dht6 option. IPv6 DHT is disabled by default. To use IPv6 DHT, you need to use --enable-dht6 and specify a global unicast address to --dht-listen-addr6. IPv6 DHT is highly experimental. * src/BtSetup.cc * src/DHTAutoSaveCommand.cc * src/DHTAutoSaveCommand.h * src/DHTConnectionImpl.cc * src/DHTConnectionImpl.h * src/DHTEntryPointNameResolveCommand.cc * src/DHTFindNodeReplyMessage.cc * src/DHTFindNodeReplyMessage.h * src/DHTGetPeersMessage.cc * src/DHTGetPeersReplyMessage.cc * src/DHTGetPeersReplyMessage.h * src/DHTMessageFactory.h * src/DHTMessageFactoryImpl.cc * src/DHTMessageFactoryImpl.h * src/DHTMessageTracker.cc * src/DHTRegistry.cc * src/DHTRegistry.h * src/DHTRoutingTableDeserializer.cc * src/DHTRoutingTableDeserializer.h * src/DHTRoutingTableSerializer.cc * src/DHTRoutingTableSerializer.h * src/DHTSetup.cc * src/DHTSetup.h * src/FtpConnection.cc * src/LpdMessageReceiver.cc * src/OptionHandlerFactory.cc * src/OptionHandlerImpl.h * src/PeerInteractionCommand.cc * src/RequestGroup.cc * src/SocketCore.cc * src/SocketCore.h * src/bittorrent_helper.cc * src/bittorrent_helper.h * src/prefs.cc * src/prefs.h * src/usage_text.h * test/DHTConnectionImplTest.cc * test/DHTFindNodeReplyMessageTest.cc * test/DHTGetPeersMessageTest.cc * test/DHTGetPeersReplyMessageTest.cc * test/DHTMessageFactoryImplTest.cc * test/DHTRoutingTableDeserializerTest.cc * test/DHTRoutingTableSerializerTest.cc * test/LpdMessageDispatcherTest.cc * test/MockDHTMessageFactory.h
* 2010-08-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-08-011-0/+11
| | | | | | | | | | | | | | | | | | Added --enable-async-dns6 option. This option enables IPv6 name resolution in asynchronous DNS resolver. This option will be ignored when --async-dns=false. * doc/aria2c.1.txt * src/AbstractCommand.cc * src/AsyncNameResolver.cc * src/AsyncNameResolver.h * src/DHTEntryPointNameResolveCommand.cc * src/OptionHandlerFactory.cc * src/download_helper.cc * src/prefs.cc * src/prefs.h * src/usage_text.h
* 2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-07-191-0/+8
| | | | | | | | | | | Added hidden select-least-used-host option. * src/CreateRequestCommand.cc * src/OptionHandlerFactory.cc * src/TrackerWatcherCommand.cc * src/prefs.cc * src/prefs.h
* 2010-07-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-07-181-1/+1
| | | | | | | | Reverted default value of -j from 2 to 5. * doc/aria2c.1.txt * src/OptionHandlerFactory.cc