aria2/test
Tatsuhiro Tsujikawa 3b2a98393e 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To add --seed-time and --seed-ratio command-line option:
	* src/Option.h (getAsDouble): New function.
	* src/Option.cc (getAsDouble): New function.
	* src/SeedCheckCommand.h: New class.
	* src/SeedCheckCommand.cc: New class.
	* src/DownloadEngineFactory.cc
	(SeedCheckCommand.h): Included.
	(UnionSeedCriteria.h): Included.
	(TimeSeedCriteria.h): Included.
	(ShareRatioSeedCriteria.h): Included.
	(newTorrentConsoleEngine): Added the processing of seed option.
	* src/SeedCriteria.h: New class.
	* src/ShareRatioSeedCriteria.h: New class.
	* src/TimeSeedCriteria.h: New class.
	* src/UnionSeedCriteria.h: New class.
	* src/prefs.h
	(PREF_SEED_TIME): New definition.
	(PREF_SEED_RATIO): New definition.
	* src/main.cc
	(showUsage): Added --seed-time and --seed-ratio option.
	(main): Added --seed-time and --seed-ratio option.
	Made default log file name "/dev/null".
	* src/SharedHandle.h
	(SharedHandle): Copy constructor. Made it assignable from the
	SharedHandle of the subclasses.
	(operator=): Made it assignable from the SharedHandle of the
	subclasses.
	(getRefCount): New function.
	
	To add notice log level and the switch to write log to stdout. 
This
	switch is configurable per log level.
	* src/Logger.h
	(notice): New function.
	(LEVEL): Added NOTICE. Assigned an explicit value to each log 
level
	constant.
	* src/LogFactory.cc
	(getInstance): The use of NullLogger was removed. A log message 
with
	notice log level was made written to stdout along with log file.
	* src/NullLogger.h
	(notice): New function.
	* src/SimpleLogger.h
	(writeHeader): Added the 'file' argument.
	(writeLog): Added the 'file' argument.
	(writeFile): New function.
	(stdoutField): New variable.
	(SimpleLogger): Removed the default constructor.
	(SimpleLogger): Made the default value of logfile 0.
	(debug): Added 'virtual' keyword.
	(info): Added 'virtual' keyword.
	(warn): Added 'virtual' keyword.
	(error): Added 'virtual' keyword.
	(notice): New function.
	(setStdout): New function.
	* src/SimpleLogger.cc
	(WRITE_LOG): Replaced writeLog with writeFile.
	(WRITE_LOG_EX): Replaced writeLog with writeFile.
	(SimpleLogger): Removed the default constructor.
	(setStdout): New function.
	(writeLog): Added the handling of NOTICE log level.
	(writeFile): New function.
	(notice): New function.

	* src/TorrentMan.h: Updated doc.

	* src/BitfieldMan.h: Updated doc.
	
	* src/TrackerWatcherCommand.cc
	(execute): Return true if error occurred in the request to the 
tracker
	and halt is requested.

	* src/TrackerUpdateCommand.cc
	(execute): Return true if error occurred in the request to the 
tracker
	and halt is requested.

	* src/TorrentConsoleDownloadEngine.h
	(onSelectiveDownloadingCompletes): Removed.
	* src/TorrentConsoleDownloadEngine.cc
	(onSelectiveDownloadingCompletes): Removed.
	* src/TorrentDownloadEngine.h
	(onEndOfRun): Added 'virtual' keyword.
	(afterEachIteration): Removed.
	(onSelectiveDownloadingCompletes): Removed.
	* src/TorrentDownloadEngine.cc
	(onEndOfRun): Removed filenameFixed.
	(afterEachIteration): Removed.	
	* src/TorrentMan.cc
	(completePiece): Call onDownloadComplete here.
	(onDownloadComplete): Added 2 log messages.
2006-08-27 12:49:17 +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
Base64Test.cc 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-03 14:19:23 +00:00
BitfieldManTest.cc 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-30 12:58:27 +00:00
BitfieldMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +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
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
FeatureConfigTest.cc 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-14 15:03:38 +00:00
FileTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +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-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-27 12:49:17 +00:00
Makefile.in 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-27 12:49: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-07-03 14:19:59 +00:00
MultiDiskWriterTest.cc 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-16 14:38:19 +00:00
NotInterestedMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
OptionTest.cc Initial import 2006-02-17 13:35:04 +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
ShaVisitorTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
ShareRatioSeedCriteriaTest.cc 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-27 12:49:17 +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
UnchokeMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
UtilTest.cc 2006-08-08 Tatsuhiro Tsujikawa <tujikawa@rednoah.com> 2006-08-07 16:05:00 +00:00
Xml2MetalinkProcessorTest.cc 2006-08-07 16:43:58 +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
test.xml 2006-07-04 12:04:47 +00:00