diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-12 11:28:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-12 11:28:16 +0000 |
| commit | 7c41d11be325a2f85108a28a2111353ad0e208b4 (patch) | |
| tree | 9b5909898bc7ecdaaf7cd2b0ff170334d05442c9 /src/StreamCheckIntegrityEntry.h | |
| parent | 4f59dc84bfa4be6e5fcea98b5f8775ddf7764dfa (diff) | |
2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented checksum validation feature(1 checksum for each
file)
The validation takes place after the download.
* src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
* src/IteratableChecksumValidator.{h, cc}: Rewritten.
* src/CheckIntegrityCommand.cc: Changed log message.
* src/Metalink2RequestGroup.cc: Set checksum to
SingleFileDownloadContext.
* src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
PieceHashCheckIntegrity class.
* src/BtCheckIntegrityEntry.{h, cc}: Now derived from
PieceHashCheckIntegrity class.
* src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
* src/IteratableValidator.h: New class.
* src/message.h
* src/CheckIntegrityEntry.{h, cc}
* src/IteratableChunkChecksumValidator.{h, cc}
* src/SingleFileDownloadContext.h
* src/DownloadCommand.cc
--allow-overwrite=true is no longer needed to check file
integrity
before download in BitTorrent download.
* src/RequestGroup.cc (getInitialCommand)
Removed RequestGroup from queue when
RequestGroup::getInitialCommand()
throws exception.
* src/RequestGroupMan.cc (getInitialCommands)
Diffstat (limited to 'src/StreamCheckIntegrityEntry.h')
| -rw-r--r-- | src/StreamCheckIntegrityEntry.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/StreamCheckIntegrityEntry.h b/src/StreamCheckIntegrityEntry.h index 7608b239..55ee06d3 100644 --- a/src/StreamCheckIntegrityEntry.h +++ b/src/StreamCheckIntegrityEntry.h @@ -35,17 +35,13 @@ #ifndef _D_STREAM_CHECK_INTEGRITY_ENTRY_H_ #define _D_STREAM_CHECK_INTEGRITY_ENTRY_H_ -#include "CheckIntegrityEntry.h" +#include "PieceHashCheckIntegrityEntry.h" #include "TimeA2.h" class Request; typedef SharedHandle<Request> RequestHandle; -class Command; -typedef deque<Command*> Commands; -class RequestGroup; -class DownloadEngine; -class StreamCheckIntegrityEntry:public CheckIntegrityEntry +class StreamCheckIntegrityEntry:public PieceHashCheckIntegrityEntry { private: RequestHandle _currentRequest; |
