diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-04-18 17:06:17 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-04-18 17:06:17 +0000 |
| commit | 19f713b99d39cc5a672e3d56eaff7b76a2a7e72c (patch) | |
| tree | fa6374a20ad36ddf4da92b08598887c54904e47f /README | |
| parent | 39276dcb00b33372e1ac5fbd0de2d60c733aeb60 (diff) | |
2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To add a readout of estimated remaining time to normal HTTP/FTP
downloads:
* src/ConsoleDownloadEngine.h (startup): New variable.
(startupLength): New variable.
(isStartupLengthSet): New variable.
(avgSpeed): New variable.
(eta): New variable.
* src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout
of
estimated remaining time.
(initStatistics): Initialized newly added variables.
(calculateStatistics): Calculate average speed and estimated
remaining
time.
To decouple TorrentDownloadEngine from HttpResponseCommand:
* src/TrackerDownloadCommand.h: Removed.
* src/TrackerDownloadCommand.cc: Removed.
* src/TrackerInitCommand.h: Removed.
* src/TrackerInitCommand.cc: Removed.
* src/TrackerUpdateCommand.h: Removed.
* src/TrackerUpdateCommand.cc: Removed.
* src/TrackerWatcherCommand.cc (execute): The construction of
request
url written in TrackerInitCommand was moved here. Do not create
tracker request command if torretnMan->trackers != 0.
* src/CompactTrackerResponseProcessor.h: New class.
* src/CompactTrackerResponseProcessor.cc: New class.
* src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
* src/HttpResponseCommand.cc (createHttpDownloadCommand):
Decoupled TorrentDownloadEngine from this.
* src/SegmentMan.h (init): New function.
* src/SegmentMan.cc (init): New function.
* src/TorrentMan.h (responseProcessor): New variable.
(trackers): New variable.
(setTrackerResponseProcessor): New function.
(getTrackerResponseProcessor): New function.
(processTrackerResponse): New function.
* src/TorrentMan.cc (Constructor): Initialized new variable
trackers.
(processTrackerResponse): New function.
* src/main.cc (main): Use ByteArrayDiskWriter and
CompactTrackerResponseProcessor.
* src/TorrentDownloadEngine.cc (afterEachIteration): Call
torrentMan->
processTrackerResponse().
* src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated
a
readout.
* src/TorrentDownloadEngine.cc (afterEachIteration): Added log
message
which indicates download has completed.
* src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
(closeFile): fd >= 0, not fd > 0
* src/main.cc (main): Added short cut for show-files.
Added short cut for torrent-file.
Added new command-line option listen-port.
Updated i18n messages.
Diffstat (limited to 'README')
| -rw-r--r-- | README | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -21,6 +21,7 @@ aria2 is in very early development stage. Currently it has following features: * Cookie support(currently aria2 ignores "expires") * It can run as a daemon process. * BitTorrent protocol support +* Selective download in multi-file torrent 3. How to build --------------- @@ -53,11 +54,22 @@ multi-file mode: The directory to store the top directory of downloaded files can be specified by -d option. -In both mode, aria2 needs at least 2 times more disk space than the file size -itself because it creates complete temporary file. +In the default behavior, before download starts, complete directory structure +is created if needed. Then aria2 opens all files mentioned in .torrent file, +directly writes to and reads from these files. +NOTE: Even in selective download, all files are opened. + +If "--direct-file-mapping" option set to be false, aria2 creates temporary +file in the store directory. The length of this file is the sum of length of +the files in .torrent file, so at least 2 times more disk space than the file +size itself is required. Writing and reading is done against this file. +After download completes, aria2 creates complete directory structure if needed, +and copies whole file or a part of it to the destination. Note: * -o option is used to change the filename of downloaded .torrent file. * This version only supports compact peers list format. * The ports aria2c uses are 6881-6999. * The maximum number of peers is 55. +* After selective download completes, aria2 is going to download rest of the +files.
\ No newline at end of file |
