#include <ED2K.h>
Public Member Functions | |
CED2K () | |
virtual | ~CED2K () |
void | Clear () |
void | Serialize (CArchive &ar) |
DWORD | GetSerialSize () const |
BOOL | GetRoot (MD4 *pHash) const |
void | BeginFile (QWORD nLength) |
void | AddToFile (LPCVOID pInput, DWORD nLength) |
BOOL | FinishFile () |
void | BeginBlockTest () |
void | AddToTest (LPCVOID pInput, DWORD nLength) |
BOOL | FinishBlockTest (DWORD nBlock) |
LPCVOID | GetRawPtr () const |
BOOL | ToBytes (BYTE **pOutput, DWORD *pnOutput) |
BOOL | FromBytes (BYTE *pOutput, DWORD nOutput, QWORD nSize=0) |
BOOL | FromRoot (MD4 *pHash) |
BOOL | CheckIntegrity () |
BOOL | IsAvailable () const |
DWORD | GetBlockCount () const |
Static Public Member Functions | |
static CString | HashToString (const MD4 *pHash, BOOL bURN=FALSE) |
static BOOL | HashFromString (LPCTSTR pszHash, MD4 *pHash) |
static BOOL | HashFromURN (LPCTSTR pszHash, MD4 *pHash) |
Protected Attributes | |
MD4 | m_pRoot |
MD4 * | m_pList |
DWORD | m_nList |
CMD4 | m_pSegment |
DWORD | m_nCurHash |
DWORD | m_nCurByte |
|
|
|
Definition at line 42 of file ED2K.cpp. References Clear(). |
|
Definition at line 129 of file ED2K.cpp. References CMD4::Add(), ED2K_PART_SIZE, CMD4::Finish(), CMD4::GetHash(), IsAvailable(), m_nCurByte, m_nCurHash, m_nList, m_pList, m_pSegment, and CMD4::Reset(). Referenced by CLibraryBuilder::HashFile(). |
|
Definition at line 214 of file ED2K.cpp. References CMD4::Add(), ED2K_PART_SIZE, IsAvailable(), m_nCurByte, and m_pSegment. Referenced by CDownloadWithTiger::ContinueValidation(). |
|
Definition at line 203 of file ED2K.cpp. References IsAvailable(), m_nCurByte, m_pSegment, and CMD4::Reset(). Referenced by CDownloadWithTiger::FindNewValidationBlock(). |
|
Definition at line 114 of file ED2K.cpp. References ED2K_PART_SIZE, IsAvailable(), m_nCurByte, m_nCurHash, m_nList, m_pList, m_pSegment, and CMD4::Reset(). Referenced by CLibraryBuilder::HashFile(). |
|
Definition at line 310 of file ED2K.cpp. References CMD4::Add(), CMD4::Finish(), CMD4::GetHash(), IsAvailable(), m_nList, m_pList, and m_pRoot. |
|
Definition at line 50 of file ED2K.cpp. References m_nList, m_pList, m_pRoot, and NULL. Referenced by CDownloadWithTiger::ClearVerification(), FromBytes(), FromRoot(), CHashDatabase::GetED2K(), Serialize(), CDownloadWithTiger::SetHashset(), and ~CED2K(). |
|
Definition at line 228 of file ED2K.cpp. References CMD4::Finish(), CMD4::GetHash(), IsAvailable(), m_nList, m_pList, and m_pSegment. Referenced by CDownloadWithTiger::FinishValidation(), and CDownloadWithTiger::ResetVerification(). |
|
Definition at line 165 of file ED2K.cpp. References CMD4::Add(), ED2K_PART_SIZE, CMD4::Finish(), CMD4::GetHash(), IsAvailable(), m_nCurByte, m_nList, m_pList, m_pRoot, m_pSegment, and CMD4::Reset(). Referenced by CLibraryBuilder::HashFile(). |
|
Definition at line 263 of file ED2K.cpp. References CMD4::Add(), Clear(), ED2K_PART_SIZE, CMD4::Finish(), CMD4::GetHash(), m_nList, m_pList, m_pRoot, and NULL. Referenced by CEDPartImporter::ImportFile(), and CDownloadWithTiger::SetHashset(). |
|
Definition at line 295 of file ED2K.cpp. References Clear(), m_nList, m_pList, and m_pRoot. Referenced by CEDPartImporter::ImportFile(), and CDownloadWithTiger::SetHashset(). |
|
Definition at line 65 of file ED2K.h. References m_nList. Referenced by CEDClient::OnHashsetRequest(), and CDownloadWithTiger::SetHashset(). |
|
Definition at line 255 of file ED2K.cpp. References m_pList. Referenced by CEDClient::OnHashsetRequest(). |
|
Definition at line 104 of file ED2K.cpp. References m_pRoot. Referenced by CLibraryFile::GetED2K(), CLibraryBuilder::HashFile(), CEDPartImporter::ImportFile(), and CDownloadWithTiger::SetHashset(). |
|
Definition at line 93 of file ED2K.cpp. References m_nList. Referenced by CHashDatabase::StoreED2K(). |
|
Definition at line 353 of file ED2K.cpp. Referenced by CDownloadEditDlg::Commit(), HashFromURN(), CShareazaURL::ParseDonkeyFile(), and CSourceURL::ParseED2KFTP(). |
|
|
|
Definition at line 64 of file ED2K.h. Referenced by AddToFile(), AddToTest(), BeginBlockTest(), BeginFile(), CheckIntegrity(), FinishBlockTest(), FinishFile(), CDownloadWithTiger::GetHashset(), CEDPartImporter::ImportFile(), CDownloadWithTiger::NeedHashset(), CDownloadWithTiger::Serialize(), and CDownloadWithTiger::SetHashset(). |
|
Definition at line 61 of file ED2K.cpp. References Clear(), m_nList, m_pList, and m_pRoot. Referenced by CHashDatabase::GetED2K(), CDownloadWithTiger::Serialize(), and CHashDatabase::StoreED2K(). |
|
Definition at line 244 of file ED2K.cpp. References m_nList, and m_pList. Referenced by CEDPartImporter::ImportFile(). |
|
Definition at line 75 of file ED2K.h. Referenced by AddToFile(), AddToTest(), BeginBlockTest(), BeginFile(), and FinishFile(). |
|
Definition at line 74 of file ED2K.h. Referenced by AddToFile(), and BeginFile(). |
|
Definition at line 71 of file ED2K.h. Referenced by AddToFile(), BeginFile(), CED2K(), CheckIntegrity(), Clear(), FinishBlockTest(), FinishFile(), FromBytes(), FromRoot(), GetBlockCount(), GetSerialSize(), Serialize(), and ToBytes(). |
|
Definition at line 70 of file ED2K.h. Referenced by AddToFile(), BeginFile(), CED2K(), CheckIntegrity(), Clear(), FinishBlockTest(), FinishFile(), FromBytes(), FromRoot(), GetRawPtr(), IsAvailable(), Serialize(), and ToBytes(). |
|
Definition at line 69 of file ED2K.h. Referenced by CheckIntegrity(), Clear(), FinishFile(), FromBytes(), FromRoot(), GetRoot(), and Serialize(). |
|
Definition at line 73 of file ED2K.h. Referenced by AddToFile(), AddToTest(), BeginBlockTest(), BeginFile(), FinishBlockTest(), and FinishFile(). |