aria2/test
Tatsuhiro Tsujikawa 2f4b3f7d02 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To add the ability to download multi torrent into respective 
files
	directly:
	
	* src/DiskWriter.h (openFile): New function.
	(seek): Removed.
	* src/MultiDiskWriter.h: New class.
	* src/MultiDiskWriter.cc: New class.
	* src/AbstractDiskWriter.h (seek): Changed its scope from public 
to
	protected.
	(openFile): New function.
	* src/AbstractDiskWriter.cc (openFile): New function.
	* src/prefs.h (V_FALSE): New definition.
	(PREF_DIRECT_FILE_MAPPING): New definition.
	* src/TorrentMan.h (setupDiskWriter): New function.
	(setAllMultiFileRequestedState): New function.
	(onDownloadComplete): New function.
	* src/TorrentMan.cc : Included MultiDiskWriter.h
	(setupDiskWriter): New function.
	(getFilePath): Updated.
	(getTempFilePath): Updated.
	(getSegmentFilePath): Updated.
	(fixFilename): Updated.
	(deleteTempFile): Updated.
	(setAllMultiFileRequestedState): New function.
	(setFileEntriesToDownload): Use setAllMultiFileRequestedState().
	(finishPartialDownloadingMode): Reset requested flags.
	(onDownloadComplete): New function.
	* src/main.cc: Added --direct-file-mapping option.
	Use TorretMan::setupDiskWriter().
	* src/TorrentDownloadEngine.cc (afterEachIteration): Use 
TorrentMan::
	onDownloadComplete().
	
	
	To fix ETA bug:

	* src/Util.h (difftvsec): New function.
	* src/Util.cc (difftvsec): New function.
	* src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int 
for the
	type of "elapsed" instead of long long int.
	(calculateStatistics): Use Util::difftvsec instead of 
Util::difftv.
	The updates of statistics takes place every 1 seconds.
	* src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its 
type.
	(calculateSpeed): Changed its argument signature.
	
	* src/PeerMessage.cc (toString): Fixed message.
2006-04-12 13:55:43 +00:00
..
4096chunk.txt Initial import 2006-02-17 13:35:04 +00:00
AllTest.cc Initial import 2006-02-17 13:35:04 +00:00
Base64Test.cc Initial import 2006-02-17 13:35:04 +00:00
BitfieldManTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
ChunkedEncodingTest.cc Initial import 2006-02-17 13:35:04 +00:00
CookieBoxTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
DataTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DefaultDiskWriterTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DictionaryTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
FileTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
ListTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Makefile.am 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
Makefile.in 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
MetaFileUtilTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
MultiDiskWriterTest.cc 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
OptionTest.cc Initial import 2006-02-17 13:35:04 +00:00
PeerMessageUtilTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
RequestTest.cc Added Referer support 2006-02-18 03:59:26 +00:00
RequestToString.cc Initial import 2006-02-17 13:35:04 +00:00
ShaVisitorTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
TorrentManTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
UtilTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
file1r.txt 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
file2r.txt 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
file3r.txt 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
test.torrent added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00