aria2/test
Tatsuhiro Tsujikawa 8d0ef717e1 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To add Metalink location option:
	
	* src/MetalinkRequestInfo.cc
	(execute): Call MetalinkEntry::setLocationPreference()
	* src/main.cc
	(showUsage): Added the help message for --metalink-location 
option.
	(main): Added --metalink-location option.
	* src/prefs.h
	(PREF_METALINK_LOCATION): New definition.
	* src/MetalinkEntry.cc
	(AddLocationPreference): New function object.
	(setLocationPreference): New function.
	* src/Xml2MetalinkProcessor.cc
	(getResource): Set location attribute to MetalinkResource

	To show URLs to download

	* src/UrlRequestInfo.h
	(printUrls): New function.

	To add multiple <file> Metalink support:

	* src/MetalinkEntry.h
	(MetalinkResources): Removed.
	(setLocationPreference): New function.
	(MetalinkEntryHandle): New type definition.
	(MetalinkEntries): New type definition.
	* src/Xml2MetalinkProcessor.h
	(getEntry): MetalinkEntry* -> MetalinkEntryHandle
	(getResource): MetalinkResource* -> MetalinkResourceHandle
	(parseFile): Metalinker* -> MetalinkerHandle
	* src/UrlRequestInfo.h
	(execute): RequestInfo* -> RequestInfos
	* src/MetalinkRequestInfo.cc
	(AccumulateNonP2PUrl): MetalinkResource* -> 
MetalinkResourceHandle
	(FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
	(execute): RequestInfo* -> RequestInfos
	Added multiple <file> support. Print filename when it is queued.
	* src/MetalinkRequestInfo.h
	(execute): RequestInfo* -> RequestInfos
	(getDownloadEngine): Removed.
	* src/RequestInfo.h
	(RequestInfoHandle): New type definition.
	(RequestInfos): New type definition.
	(execute): RequestInfo* -> RequestInfos
	(getDownloadEngine): Removed.
	* src/MetalinkResource.h
	(MetalinkResourceHandle): New type definition.
	(MetalinkResources): New type definition.
	* src/MetalinkEntry.cc
	(~MetalinkEntry): Removed the deletion of the elements of 
resources,
	because the element is now of type MetalinkResourceHandle.
	(PrefOrder): MetalinkResource* -> MetalinkResourceHandle
	(Supported): MetalinkResource* -> MetalinkResourceHandle
	(dropUnsupportedResource): Removed the deletion of the elements 
of
	resources because the element is now of type 
MetalinkResourceHandle.
	* src/Xml2MetalinkProcessor.cc
	(parseFile): Metalinker* -> MetalinkerHandle
	MetalinkEntry* -> MetalinkEntryHandle
	Removed try-catch block.
	(getEntry): MetalinkEntry* -> MetalinkEntryHandle
	MetalinkResource* -> MetalinkResourceHandle
	Removed try-catch block.
	(getResource): MetalinkResource* -> MetalinkResourceHandle
	Free result by using xmlXPathFreeObject()
	* src/Metalinker.cc
	(~Metalinker): Removed the deletion of entries.
	MetalinkEntry* -> MetalinkEntryHandle
	(queryEntry): Add multiple <file> Metalink support.
	* src/Metalinker.h
	(MetalinkEntries): Removed.
	(queryEntry): MetalinkEntry* -> MetalinkEntries
	* src/MetalinkProcessor.h
	(parseFile): Metalinker* -> MetalinkerHandle
	
	Bug fixes:

	* src/PeerChokeCommand.cc
	(execute): cat01->cat02
	* src/DefaultPieceStorage.cc
	(DefaultPieceStorage): Added diskAdaptor(0)
	* src/TrackerWatcherComand.cc:
	(execute): Use btAnnounce->noMoreAnnounce()
	to determin whether the function returns true or not.
	* src/TrackerUpdateCommand.cc:
	(execute): Use btAnnounce->noMoreAnnounce()
	to determin whether the function returns true or not.
	* src/FtpConnection.cc
	(bulkReceiveResponse): Throw DlRetryEx if EOF got.
	This is the fix of the busy loop bug.
	* src/DownloadCommand.cc
	(DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() 
returns
	cached PeerStat.
	
	The value of "name" entry in torrent file is now set by
	*DiskAdaptor::setTopDir(...) methods.
	
	* src/MultiDiskAdaptor.h
	(topDir): New variable.
	(setTopDir): New function.
	(getTopDir): New function.
	* src/MultiDiskAdaptor.cc
	(getFilePath): Concat storDir, "/" and topDir.
	(mkdir): Use getFilePath() to get the directory path for output.
	* src/DefaultPieceStorage.cc
	(initStorage): Set the value of "name" entry to 
MultiDiskAdaptor,
	CopyDiskAdaptor.
	* src/CopyDiskAdaptor.h
	(topDir): New variable.
	(setTopDir): New function.
	(getTopDir): New function.
	* src/CopyDiskAdaptor.cc
	(fixFilename): Updated.
	
	Misc

	* src/UrlRequestInfo.h
	(e): Removed.
	(UrlRequestInfo): Removed e.
	(getDownloadEngine): Removed.
	* src/UrlRequestInfo.cc
	(handler): Rewritten.
	(printUrls): New function.
	(execute): Call printUrls().
	
	* src/HandshakeMessage.cc
	(check): peerinteraction->getBtContext() -> btContext

	* src/PeerInteraction.h
	(getBtContext): Removed.

	* src/TorrentRequestInfo.h
	(execute): RequestInfo* -> RequestInfos
	(getDownloadEngine): Removed.
	* src/TorrentRequestInfo.cc
	(haltRequested): Removed.
	(btHaltRequested): New variable.
	(torrentHandler): haltRequested -> btHaltRequested
	(execute): RequestInfo* -> RequestInfos
	* src/TorrentConsoleDownloadEngine.cc
	(afterEachIteration): haltRequested -> btHaltRequested.
	
	* src/ConsoleDownloadEngine.h
	(initStatistics): Added virtual.
	(calculateStatistics): Added virtual.
	(onEndOfRun): Added virtual.
	(afterEachIteration): Added virtual.
	* src/ConsoleDownloadEngine.cc
	(haltRequested): New variable.
	(afterEachIteration): New function.

	* src/main.cc
	(requestInfo): Removed.

	* src/SegmentMan.cc
	(findSlowerSegmentEntry): Refactored.
2006-11-08 16:25:38 +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
AllowedFastMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
AnnounceListTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
Base64Test.cc 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-03 14:19:23 +00:00
BitfieldManTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
BitfieldMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
BtRegistryTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
CancelMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
ChokeMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +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
DefaultBtAnnounceTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
DefaultBtContextTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
DefaultBtProgressInfoFileTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
DefaultDiskWriterTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DefaultPeerListProcessorTest.cc 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-18 14:57:00 +00:00
DefaultPeerStorageTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
DefaultPieceStorageTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
DictionaryTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
FeatureConfigTest.cc 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-14 15:03:38 +00:00
FileTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
HaveAllMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
HaveMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
HaveNoneMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
InterestedMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
ListTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Makefile.am 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
Makefile.in 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
MetaFileUtilTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
MetalinkEntryTest.cc 2006-08-07 16:43:58 +00:00
MetalinkerTest.cc 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-08 16:25:38 +00:00
MockBtAnnounce.h 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
MockBtContext.h 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
MockBtProgressInfoFile.h 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
MockPeerStorage.h 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
MockPieceStorage.h 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
MultiDiskWriterTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
NotInterestedMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
OptionTest.cc 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-28 12:40:41 +00:00
PeerMessageUtilTest.cc 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-30 12:58:27 +00:00
PieceMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
RejectMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
RequestMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
RequestTest.cc 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-20 15:48:12 +00:00
RequestToString.cc Initial import 2006-02-17 13:35:04 +00:00
SegmentManTest.cc 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-18 14:57:00 +00:00
ShaVisitorTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
ShareRatioSeedCriteriaTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
SpeedCalcTest.cc 2006-09-23 11:58:23 +00:00
SuggestPieceMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
TimeSeedCriteriaTest.cc 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-27 12:49:17 +00:00
TorrentManTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
TrackerWatcherCommandTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
UnchokeMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
UtilTest.cc 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
Xml2MetalinkProcessorTest.cc 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-08 16:25:38 +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
single.torrent 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-05 15:04:17 +00:00
test.torrent 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-20 13:20:50 +00:00
test.xml 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-11-08 16:25:38 +00:00