summaryrefslogtreecommitdiff
path: root/src/RpcMethodImpl.cc
Commit message (Collapse)AuthorAgeFilesLines
* clang-formatTatsuhiro Tsujikawa2016-03-261-1/+1
|
* Added support for a dynamic management of the number of concurrent downloads ↵oliviercommelarbre2016-03-161-1/+5
| | | | as a function of the overall bandwidth observed
* Add following to aria2.tellStatus response key as reverse link for followedByTatsuhiro Tsujikawa2016-03-051-0/+11
|
* Add "seeder" key to tellStatus RPC responseTatsuhiro Tsujikawa2016-02-031-4/+9
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-501/+491
|
* Fix compile error on travisTatsuhiro Tsujikawa2015-12-261-1/+1
|
* Add system.listMethods RPC methodTatsuhiro Tsujikawa2015-12-261-0/+18
| | | | | | | | system.listMethods just returns the available RPC method names. It can be executed without secret token, because it just returns the method names, and does not alter anything. See GH-437
* Send the last error message as part of tellStatus RPC responseJarda Snajdr2015-11-181-0/+4
|
* Use user-defined literals for time unitsTatsuhiro Tsujikawa2015-06-211-2/+2
|
* Replace timer facility with chrono libTatsuhiro Tsujikawa2015-06-091-4/+4
|
* Don't send back rpc-secret option value in aria2.getGlobalOption RPC methodTatsuhiro Tsujikawa2015-03-131-1/+1
|
* Remove request pre-authorization againNils Maier2014-07-221-4/+0
|
* Delay auth failures instead of PBKDF2Nils Maier2014-07-221-46/+65
| | | | Closes GH-256
* Fix use-after-free on exit with multi-file torrent download + DHTTatsuhiro Tsujikawa2014-06-081-0/+6
| | | | | | | | | | | DefaultPieceStorage may be referenced by one of DHT task (e.g., DHTPeerLookupTask), after RequestGroup was deleted, and even after RequestGroupMan was deleted. DefaultPieceStorage has a reference to MultiDiskAdaptor which calls RequestGroupMan object on destruction. So when DHT task is destroyed, DefaultPieceStorage is destroyed, which in turn destroys MultiDiskAdaptor. DHT task is destroyed after RequestGroupMan was destroyed, MultiDiskAdaptor will use now freed RequestGroupMan object, this is use-after-free.
* util::parseIntSegments: Return SegList<int>Tatsuhiro Tsujikawa2014-06-041-3/+2
|
* Support PREF_DIR change for Metalink filesTatsuhiro Tsujikawa2014-06-041-10/+23
| | | | | Reworked previous commit adeead6f0396e2f8551d1182972e277728fd6c8b, and now support changing PREF_DIR for Metalink downloads.
* Fix assertion failure when dir option of paused HTTP/FTP download is changedTatsuhiro Tsujikawa2014-06-031-3/+12
| | | | | | | | | | | | When the directory is changed via aria2.changeOption RPC method, we directly change first FileEntry's path using FileEntry::setPath(). If there is no PREF_OUT option is given, basically file name is unknown, so we just set empty string and let the next run determine the correct file name and new directory is applied there. But previous code does not reset length property of FileEntry, so the unexpected code path is taken when unpaused and its path expects path is not empty string. This commit fixes this issue by setting length to 0 using FileEntry::setLength().
* Authorize RPC multicalls only once.Nils Maier2014-05-201-2/+10
| | | | | Cache the auth status afterwards and just assume the token still matches (within the same request, of course).
* Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, alwaysNils Maier2014-04-171-10/+2
|
* Fix some warningsNils Maier2014-04-131-1/+0
|
* Add aria2.saveSession RPC methodTatsuhiro Tsujikawa2014-02-191-0/+18
| | | | | This method saves the current session to a file specified by --save-session option. This method returns "OK" if it succeeds.
* Add numStoppedTotal key to aria2.getGlobalStat() RPC method responseTatsuhiro Tsujikawa2014-02-151-0/+2
| | | | | | | It shows the number of stopped downloads in the current session and not capped by --max-download-result option. On the other hand, the existing numStopped key also shows the number of stopped downloads, but it is capped by --max-download-result option.
* Code cleanupTatsuhiro Tsujikawa2013-11-101-47/+47
|
* Introduce PrefPtr typedefNils Maier2013-09-191-2/+2
|
* Convert to autos and ranged loopsNils Maier2013-08-211-17/+12
|
* Rewrite RPC method factory functionTatsuhiro Tsujikawa2013-07-111-2/+1
|
* Use std::unique_ptr for ValueBase object hierarchyTatsuhiro Tsujikawa2013-07-111-264/+252
|
* BtRegistry: Use std::unique_ptr for BtObjectTatsuhiro Tsujikawa2013-07-061-10/+8
|
* DownloadEngine: Use std::unique_ptr for RequestGroupManTatsuhiro Tsujikawa2013-07-061-1/+1
|
* Use std::unique_ptr for MessageDigestTatsuhiro Tsujikawa2013-07-031-1/+1
|
* Rewrite util::divideTatsuhiro Tsujikawa2013-06-251-2/+1
|
* Wrap Command object in std::unique_ptrTatsuhiro Tsujikawa2013-06-231-3/+4
|
* DownloadContext::attrs_ now holds std::unique_ptrTatsuhiro Tsujikawa2013-06-231-4/+3
| | | | DownloadContext::getAttribute() returns a raw pointer.
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-158/+158
|
* Make getOption RPC method return option for stopped downloadsTatsuhiro Tsujikawa2013-05-281-5/+10
|
* Add changeGlobalOption, getGlobalOption, getGlobalOptions APITatsuhiro Tsujikawa2013-05-171-31/+34
|
* Add changeOption and DownloadHandle::getOption APITatsuhiro Tsujikawa2013-05-161-79/+77
| | | | | In aria2c.rst, define section label for "Input File" section so that it can be referenced from other document.
* Add changePosition APITatsuhiro Tsujikawa2013-05-151-4/+4
|
* Use BtFileMode for TorrentAttribute::modeTatsuhiro Tsujikawa2013-05-151-2/+2
|
* Add removeDownload, pauseDownload and unpauseDownload API functionTatsuhiro Tsujikawa2013-05-011-26/+24
|
* Implement IndexedList::iteratorTatsuhiro Tsujikawa2013-03-031-5/+5
| | | | | It is dangerous to expose internal iterator to the outside, which is easily misused.
* Remove PeerStorage::getActivePeers() and add getUsedPeers() insteadTatsuhiro Tsujikawa2013-01-261-6/+7
| | | | | PeerStorage::getUsedPeers() returns non-active peers, so caller must call Peer::isActive() to get active peers.
* Faster deletion of RequestGroup and DownloadResult listsTatsuhiro Tsujikawa2012-12-191-20/+18
|
* Use 64 bits random bytes as GIDTatsuhiro Tsujikawa2012-12-161-29/+47
| | | | | | | | | | This change replaces the current 64 bit sequential GID with 64 bits random bytes GID in an attempt to support persistent GID. Internally, the GID is stored as uint64_t. For human representation and RPC interface, GID is represented as 16 bytes hex string. For console readout, 16 bytes are too long, so it is abbreviated to first 6 bytes. When querying GID in RPC calls, user can speicfy the prefix of GID as long as the prefix is shared by more than 1 GID entries.
* Simplified TransferStat structTatsuhiro Tsujikawa2012-10-261-3/+3
|
* Reworked download/upload statistics calculationTatsuhiro Tsujikawa2012-10-251-3/+4
| | | | | | | | | | | | | | The old implementation calculates download/upload statistics for a RequestGroup by summing up all PeerStat objects. For global statistics, those are summed together. This clearly incurs runtime penalty and we introduced some kind of caching which updates statistics every 250ms but it did not work right. This change removes all these aggregation code, and instead makes RequestGroup and RequestGroupMan objects hold NetStat object and download/upload bytes are directly calculated by thier own NetStat. This is far more simplar than the old way and less runtime penalty and brings more accuracy.
* Added --rpc-save-upload-metadata optionTatsuhiro Tsujikawa2012-10-161-27/+36
| | | | | | | | | | 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.
* Removed trailing spacesTatsuhiro Tsujikawa2012-10-011-3/+3
|
* Handle OptionHandlers as raw pointerTatsuhiro Tsujikawa2012-09-271-2/+2
|
* Use nothrow version of parseInt, parseUInt and parseLLIntTatsuhiro Tsujikawa2012-09-271-1/+6
|