summaryrefslogtreecommitdiff
path: root/src/RpcMethodImpl.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Rewritten FeatureConfig into set of functionsTatsuhiro Tsujikawa2012-09-221-5/+4
|
* Use std::vector instead of std::map for ContextAttribute objectsTatsuhiro Tsujikawa2012-09-221-3/+3
| | | | Now key for ContextAttribute object store is int instead of string.
* Add GID => RequestGroup index for faster access to RequestGroupTatsuhiro Tsujikawa2012-07-311-87/+59
|
* Specify torrent file explicitly in createRequestGroupForBitTorrent()Tatsuhiro Tsujikawa2012-07-261-3/+3
|
* Use int64_t instead of off_tTatsuhiro Tsujikawa2012-06-251-3/+3
| | | | | Some classes such as DiskAdaptor, DiskWriter, FileAllocationIterator and ChecksumValidator are left unchanged.
* Use PRId64 for int64_t format specifierTatsuhiro Tsujikawa2012-06-251-13/+13
|
* Use std::set instead of std::deque if the elements are sorted andTatsuhiro Tsujikawa2012-03-231-2/+2
| | | | insertions and deletions are frequent.
* Added checkRequiredInteger() to check integer param is in valid range.Tatsuhiro Tsujikawa2012-02-261-1/+1
| | | | | Ensure that fileIndex in aria2.changeUri RPC method is greater than or equal to 1.
* Fixed compile error without BitTorrent supportTatsuhiro Tsujikawa2011-12-111-0/+2
|
* Fixed compile error without BitTorrent and Metalink supportTatsuhiro Tsujikawa2011-12-111-2/+5
|
* Use util::itos() for signed integralsTatsuhiro Tsujikawa2011-12-091-15/+15
|
* Use int32_t for piece length instead of size_tTatsuhiro Tsujikawa2011-12-091-4/+4
|
* Replaced uint64_t with off_t or int64_t.Tatsuhiro Tsujikawa2011-12-091-4/+4
| | | | | Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t.
* Use %lld to fomat a2_gid_tTatsuhiro Tsujikawa2011-12-021-37/+13
|
* Rewritten parse*IntTatsuhiro Tsujikawa2011-11-121-1/+1
|
* Rewritten base64::decode and base64::encodeTatsuhiro Tsujikawa2011-11-051-2/+6
|
* mv Base64.{cc,h} base64.{cc,h}Tatsuhiro Tsujikawa2011-11-051-1/+1
|
* Made util::fromHex and base32::decode function templateTatsuhiro Tsujikawa2011-11-051-3/+1
|
* util::divide now takes iterators as arguments.Tatsuhiro Tsujikawa2011-11-031-5/+8
|
* Changed parse*Int functions so that it accepts iterators.Tatsuhiro Tsujikawa2011-11-031-1/+1
|
* Use merged option values.Tatsuhiro Tsujikawa2011-11-021-13/+13
|
* --index-out option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-11-021-0/+14
| | | | | --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/+9
| | | | | --dir and --out option is now available in aria2.changeOption if a download is waiting/paused in queue.
* Changed interface of BtRegistry.Tatsuhiro Tsujikawa2011-11-011-11/+14
| | | | BtRegistry now uses SharedHandle<BtObject> instead of BtObject.
* --max-connection-per-server option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-311-0/+8
| | | | | --max-connection-per-server option is now available in aria2.changeOption if a download is waiting/paused in queue.
* --split option is now available in aria2.changeOption.Tatsuhiro Tsujikawa2011-10-301-0/+3
| | | | | --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/+6
| | | | | --select-file 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/+8
| | | | | --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-15/+31
| | | | | | | | | 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.
* Made --max-download-result option available in aria2.changeGlobalOption.Tatsuhiro Tsujikawa2011-10-221-0/+4
|
* OptionHandler now knows its option can be used in -i list option,Tatsuhiro Tsujikawa2011-10-221-30/+32
| | | | | | changeable in aria2.changeOption or aria2.changeGlobalOption. OptionHandler also now its option is cumulative.
* Rewritten OptionParser. Made it simpler and efficient.Tatsuhiro Tsujikawa2011-10-221-2/+2
|
* Rewritten Option. Introduced Pref.Tatsuhiro Tsujikawa2011-10-211-11/+13
| | | | | Now preference key is Pref instead of just string. It has Option ID. Now option lookup and setting takes O(1) using Pref object.
* Renamed DownloadResult::bitfieldStr to bitfield and changed itsTatsuhiro Tsujikawa2011-10-131-6/+5
| | | | content from hex string to raw byte string.
* Renamed DownloadResult::infoHashStr to infoHash and changed itsTatsuhiro Tsujikawa2011-10-131-2/+2
| | | | contents from hex digest to raw byte string.
* Removed asString, asList, ... and use downcast<T> instead.Tatsuhiro Tsujikawa2011-09-261-7/+7
|
* Throw exception if parameter has wrong type in RPC method.Tatsuhiro Tsujikawa2011-09-251-97/+95
| | | | | | | Formally, depending on the method implementation, this kind of error is just ignored and parameter is skipped. Now aria2 responds error for these cases. The required parameter checking is also reworked along with this change.
* Added completedLength response key in aria2.getFiles RPC method.Tatsuhiro Tsujikawa2011-08-231-6/+54
|
* Added aria2.getGlobalStat RPC method.Tatsuhiro Tsujikawa2011-06-171-0/+17
| | | | | It returns overall download/upload speed and the number of active/stopped/waiting downloads.