#include <DownloadWithTiger.h>
Inheritance diagram for CDownloadWithTiger:
Public Member Functions | |
CDownloadWithTiger () | |
virtual | ~CDownloadWithTiger () |
DWORD | GetValidationCookie () const |
QWORD | GetVerifyLength (int nHash=HASH_NULL) const |
BOOL | GetNextVerifyRange (QWORD &nOffset, QWORD &nLength, BOOL &bSuccess, int nHash=HASH_NULL) const |
BOOL | IsFullyVerified () |
BOOL | NeedTigerTree () const |
BOOL | SetTigerTree (BYTE *pTiger, DWORD nTiger) |
CTigerTree * | GetTigerTree () |
BOOL | NeedHashset () const |
BOOL | SetHashset (BYTE *pSource, DWORD nSource) |
CED2K * | GetHashset () |
virtual CString | GetAvailableRanges () const |
virtual void | ResetVerification () |
virtual void | ClearVerification () |
virtual void | Serialize (CArchive &ar, int nVersion) |
Protected Member Functions | |
BOOL | ValidationCanFinish () const |
void | RunValidation (BOOL bSeeding) |
Private Member Functions | |
BOOL | FindNewValidationBlock (int nHash) |
void | ContinueValidation () |
void | FinishValidation () |
void | SubtractHelper (FF::SimpleFragmentList &ppCorrupted, BYTE *pBlock, QWORD nBlock, QWORD nSize) |
Private Attributes | |
CTigerTree | m_pTigerTree |
BYTE * | m_pTigerBlock |
DWORD | m_nTigerBlock |
DWORD | m_nTigerSize |
DWORD | m_nTigerSuccess |
CED2K | m_pHashset |
BYTE * | m_pHashsetBlock |
DWORD | m_nHashsetBlock |
DWORD | m_nHashsetSuccess |
DWORD | m_nVerifyCookie |
int | m_nVerifyHash |
DWORD | m_nVerifyBlock |
QWORD | m_nVerifyOffset |
QWORD | m_nVerifyLength |
DWORD | m_tVerifyLast |
Friends | |
class | CEDClient |
class | CDownloadTipCtrl |
|
Definition at line 45 of file DownloadWithTiger.cpp. References HASH_NULL, m_nHashsetBlock, m_nHashsetSuccess, m_nTigerBlock, m_nTigerSuccess, m_nVerifyBlock, m_nVerifyCookie, m_nVerifyHash, m_pHashsetBlock, m_pTigerBlock, and NULL. |
|
Definition at line 60 of file DownloadWithTiger.cpp. References m_pHashsetBlock, m_pTigerBlock, and NULL. |
|
Definition at line 689 of file DownloadWithTiger.cpp. References CED2K::Clear(), CTigerTree::Clear(), m_nHashsetBlock, m_nTigerBlock, m_nVerifyCookie, m_pHashset, m_pHashsetBlock, m_pTigerBlock, m_pTigerTree, NULL, ResetVerification(), and CDownloadBase::SetModified(). Referenced by CDownloadEditDlg::Commit(), CDownloadEditDlg::OnErase(), CDownloadEditDlg::OnLButtonUp(), and Serialize(). |
|
|
|
|
Reimplemented from CDownloadWithFile. Definition at line 629 of file DownloadWithTiger.cpp. References CDownloadWithFile::GetAvailableRanges(), and GetNextVerifyRange(). Referenced by CUploadTransferHTTP::RequestPartialFile(). |
|
Definition at line 286 of file DownloadWithTiger.cpp. References CED2K::IsAvailable(), m_pHashset, and NULL. |
|
Definition at line 98 of file DownloadWithTiger.cpp. References ED2K_PART_SIZE, HASH_ED2K, HASH_NULL, HASH_TIGERTREE, HASH_TORRENT, m_nHashsetBlock, CDownloadBase::m_nSize, m_nTigerBlock, m_nTigerSize, CDownloadWithTorrent::m_nTorrentBlock, CDownloadWithTorrent::m_nTorrentSize, m_pHashsetBlock, m_pTigerBlock, CDownloadWithTorrent::m_pTorrentBlock, NULL, and TS_TRUE. Referenced by CFragmentBar::DrawDownload(), and GetAvailableRanges(). |
|
Definition at line 223 of file DownloadWithTiger.cpp. References CTigerTree::IsAvailable(), m_pTigerTree, and NULL. Referenced by CUploadTransferHTTP::RequestPartialFile(). |
|
Definition at line 69 of file DownloadWithTiger.cpp. References m_nVerifyCookie. |
|
Definition at line 74 of file DownloadWithTiger.cpp. References ED2K_PART_SIZE, HASH_ED2K, HASH_NULL, HASH_TIGERTREE, HASH_TORRENT, m_nTigerSize, CDownloadWithTorrent::m_nTorrentSize, m_pHashsetBlock, m_pTigerBlock, CDownloadWithTorrent::m_pTorrentBlock, and NULL. Referenced by CDownloadTransfer::ChunkifyRequest(). |
|
Definition at line 163 of file DownloadWithTiger.cpp. References m_nHashsetBlock, m_nHashsetSuccess, m_nTigerBlock, m_nTigerSuccess, CDownloadWithTorrent::m_nTorrentBlock, and CDownloadWithTorrent::m_nTorrentSuccess. Referenced by CDownloads::GetSeedCount(), and CDownload::OnMoved(). |
|
Definition at line 231 of file DownloadWithTiger.cpp. References CED2K::IsAvailable(), CDownloadBase::m_nSize, m_pHashset, and SIZE_UNKNOWN. Referenced by CDownloadEditDlg::OnLButtonUp(), CDownloadTransferED2K::SendSecondaryRequest(), CEDNeighbour::SendSharedDownload(), CEDNeighbour::SendSharedFiles(), and CQuerySearch::WriteHashesToEDPacket(). |
|
Definition at line 174 of file DownloadWithTiger.cpp. References CTigerTree::IsAvailable(), CDownloadBase::m_nSize, m_pTigerTree, and SIZE_UNKNOWN. Referenced by CDownloadEditDlg::OnLButtonUp(), and CDownloadTransferHTTP::StartNextFragment(). |
|
|
Definition at line 322 of file DownloadWithTiger.cpp. References ContinueValidation(), Downloads, FindNewValidationBlock(), HASH_ED2K, HASH_NULL, HASH_TIGERTREE, HASH_TORRENT, CDownloads::m_nValidation, m_nVerifyBlock, m_nVerifyHash, CDownloadWithFile::m_pFile, m_pHashsetBlock, m_pTigerBlock, CDownloadWithTorrent::m_pTorrentBlock, CDownloadBase::m_sLocalName, NULL, and CDownloadWithFile::OpenFile(). Referenced by CDownload::OnRun(). |
|
Reimplemented from CDownloadWithTorrent. Reimplemented in CDownload, and CDownloadWithExtras. Definition at line 711 of file DownloadWithTiger.cpp. References ClearVerification(), CED2K::IsAvailable(), CTigerTree::IsAvailable(), CDownloadBase::m_bBTH, CDownloadBase::m_bED2K, CDownloadBase::m_bSHA1, CDownloadBase::m_bTiger, m_nHashsetBlock, m_nHashsetSuccess, CDownloadBase::m_nSize, m_nTigerBlock, m_nTigerSize, m_nTigerSuccess, m_pHashset, m_pHashsetBlock, m_pTigerBlock, m_pTigerTree, CED2K::Serialize(), CTigerTree::Serialize(), CDownloadWithTorrent::Serialize(), and CTigerTree::SetupParameters(). Referenced by CDownloadWithExtras::Serialize(). |
|
|
|
Definition at line 611 of file DownloadWithTiger.cpp. References detail::List< FragmentT, ContainerT >::empty(), detail::List< FragmentT, ContainerT >::erase(), CDownloadBase::m_nSize, and TS_TRUE. Referenced by FinishValidation(). |
|
Definition at line 294 of file DownloadWithTiger.cpp. References CSettings::Downloads, m_nHashsetBlock, m_nHashsetSuccess, m_nTigerBlock, m_nTigerSuccess, CDownloadWithTorrent::m_nTorrentBlock, CDownloadWithTorrent::m_nTorrentSuccess, m_pHashsetBlock, m_pTigerBlock, CDownloadWithTorrent::m_pTorrentBlock, NULL, Settings, CSettings::sDownloads::VerifyED2K, and CSettings::sDownloads::VerifyTiger. Referenced by CDownload::OnRun(). |
|
Definition at line 87 of file DownloadWithTiger.h. |
|
Definition at line 86 of file DownloadWithTiger.h. |
|
Definition at line 49 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), ClearVerification(), FindNewValidationBlock(), FinishValidation(), GetNextVerifyRange(), IsFullyVerified(), ResetVerification(), Serialize(), SetHashset(), and ValidationCanFinish(). |
|
Definition at line 50 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), FinishValidation(), IsFullyVerified(), ResetVerification(), Serialize(), and ValidationCanFinish(). |
|
Definition at line 43 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), ClearVerification(), FindNewValidationBlock(), FinishValidation(), GetNextVerifyRange(), IsFullyVerified(), ResetVerification(), Serialize(), SetTigerTree(), and ValidationCanFinish(). |
|
Definition at line 44 of file DownloadWithTiger.h. Referenced by FindNewValidationBlock(), FinishValidation(), GetNextVerifyRange(), GetVerifyLength(), Serialize(), and SetTigerTree(). |
|
Definition at line 45 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), FinishValidation(), IsFullyVerified(), ResetVerification(), Serialize(), and ValidationCanFinish(). |
|
Definition at line 54 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), ContinueValidation(), FindNewValidationBlock(), FinishValidation(), ResetVerification(), and RunValidation(). |
|
Definition at line 52 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), ClearVerification(), FinishValidation(), GetValidationCookie(), and ResetVerification(). |
|
Definition at line 53 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), ContinueValidation(), FindNewValidationBlock(), FinishValidation(), ResetVerification(), and RunValidation(). |
|
Definition at line 56 of file DownloadWithTiger.h. Referenced by ContinueValidation(), and FindNewValidationBlock(). |
|
Definition at line 55 of file DownloadWithTiger.h. Referenced by ContinueValidation(), and FindNewValidationBlock(). |
|
Definition at line 47 of file DownloadWithTiger.h. Referenced by ClearVerification(), ContinueValidation(), FindNewValidationBlock(), FinishValidation(), GetHashset(), NeedHashset(), ResetVerification(), Serialize(), and SetHashset(). |
|
Definition at line 48 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), ClearVerification(), FindNewValidationBlock(), FinishValidation(), GetNextVerifyRange(), GetVerifyLength(), ResetVerification(), RunValidation(), Serialize(), SetHashset(), ValidationCanFinish(), and ~CDownloadWithTiger(). |
|
Definition at line 42 of file DownloadWithTiger.h. Referenced by CDownloadWithTiger(), ClearVerification(), FindNewValidationBlock(), FinishValidation(), GetNextVerifyRange(), GetVerifyLength(), ResetVerification(), RunValidation(), Serialize(), SetTigerTree(), ValidationCanFinish(), and ~CDownloadWithTiger(). |
|
Definition at line 41 of file DownloadWithTiger.h. Referenced by ClearVerification(), ContinueValidation(), FindNewValidationBlock(), FinishValidation(), GetTigerTree(), NeedTigerTree(), ResetVerification(), Serialize(), and SetTigerTree(). |
|
Definition at line 57 of file DownloadWithTiger.h. Referenced by FindNewValidationBlock(). |