2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Filled up pieces based on the number of missing blocks, rather 
than
	simplay the number of piece * block length.
	* src/BtRequestFactory.h
	* src/DefaultBtInteractive.cc
	* src/DefaultBtInteractive.h
	* src/DefaultBtRequestFactory.cc
	* src/DefaultBtRequestFactory.h
	* src/Piece.cc
	* src/Piece.h
	* test/BitfieldManTest.cc
	* test/DefaultBtRequestFactoryTest.cc
	* test/MockBtRequestFactory.h
This commit is contained in:
Tatsuhiro Tsujikawa 2008-06-17 11:43:29 +00:00
parent 09502fc3db
commit dfe2f99345
11 changed files with 87 additions and 15 deletions

View file

@ -17,6 +17,8 @@ public:
virtual size_t countTargetPiece() { return 0; }
virtual size_t countMissingBlock() { return 0; }
virtual void removeCompletedPiece() {}
virtual void doChokedAction() {}