#include <DownloadSource.h>
Public Member Functions | |
CDownloadSource (CDownload *pDownload) | |
CDownloadSource (CDownload *pDownload, CQueryHit *pHit) | |
CDownloadSource (CDownload *pDownload, DWORD nClientID, WORD nClientPort, DWORD nServerIP, WORD nServerPort, GGUID *pGUID=NULL) | |
CDownloadSource (CDownload *pDownload, SHA1 *pGUID, IN_ADDR *pAddress, WORD nPort) | |
CDownloadSource (CDownload *pDownload, LPCTSTR pszURL, BOOL bSHA1=FALSE, BOOL bHashAuth=FALSE, FILETIME *pLastSeen=NULL) | |
virtual | ~CDownloadSource () |
BOOL | ResolveURL () |
void | Serialize (CArchive &ar, int nVersion) |
BOOL | CanInitiate (BOOL bNetwork, BOOL bEstablished) const |
void | Remove (BOOL bCloseTransfer, BOOL bBan) |
void | OnFailure (BOOL bNondestructive) |
void | OnResume () |
void | SetValid () |
void | SetLastSeen () |
void | SetGnutella (int nGnutella) |
BOOL | CheckHash (const SHA1 *pSHA1) |
BOOL | CheckHash (const TIGEROOT *pTiger) |
BOOL | CheckHash (const MD4 *pED2K) |
BOOL | PushRequest () |
BOOL | CheckPush (GGUID *pClientID) |
BOOL | CheckDonkey (CEDClient *pClient) |
void | AddFragment (QWORD nOffset, QWORD nLength, BOOL bMerge=FALSE) |
void | SetAvailableRanges (LPCTSTR pszRanges) |
BOOL | HasUsefulRanges () const |
BOOL | TouchedRange (QWORD nOffset, QWORD nLength) const |
int | GetColour () |
CDownloadTransfer * | CreateTransfer () |
BOOL | Equals (CDownloadSource *pSource) const |
Public Attributes | |
CDownload * | m_pDownload |
CDownloadSource * | m_pPrev |
CDownloadSource * | m_pNext |
CDownloadTransfer * | m_pTransfer |
BOOL | m_bSelected |
CString | m_sURL |
PROTOCOLID | m_nProtocol |
BOOL | m_bGUID |
GGUID | m_pGUID |
IN_ADDR | m_pAddress |
WORD | m_nPort |
IN_ADDR | m_pServerAddress |
WORD | m_nServerPort |
CString | m_sName |
DWORD | m_nIndex |
BOOL | m_bHashAuth |
BOOL | m_bSHA1 |
BOOL | m_bTiger |
BOOL | m_bED2K |
CString | m_sServer |
CString | m_sNick |
DWORD | m_nSpeed |
BOOL | m_bPushOnly |
BOOL | m_bCloseConn |
BOOL | m_bReadContent |
FILETIME | m_tLastSeen |
int | m_nGnutella |
BOOL | m_bClientExtended |
DWORD | m_nSortOrder |
int | m_nColour |
DWORD | m_tAttempt |
int | m_nFailures |
FF::SimpleFragmentList | m_oAvailable |
FF::SimpleFragmentList | m_oPastFragments |
Private Member Functions | |
void | Construct (CDownload *pDownload) |
|
Definition at line 54 of file DownloadSource.cpp. References Construct(). |
|
|
Definition at line 146 of file DownloadSource.cpp. References Construct(), CED2K::HashToString(), CEDPacket::IsLowID(), m_bED2K, m_bGUID, m_bPushOnly, CDownloadBase::m_nSize, m_pDownload, CDownloadBase::m_pED2K, m_pGUID, m_sServer, m_sURL, NULL, and ResolveURL(). |
|
Definition at line 176 of file DownloadSource.cpp. References Construct(), CSHA::HashToString(), m_bGUID, CDownloadBase::m_pBTH, m_sServer, m_sURL, NULL, and ResolveURL(). |
|
Definition at line 204 of file DownloadSource.cpp. References Construct(), m_bHashAuth, m_sURL, m_tLastSeen, NULL, and ResolveURL(). |
|
Definition at line 98 of file DownloadSource.cpp. |
|
|
|
Definition at line 606 of file DownloadSource.cpp. References CEDClient::m_bGUID, m_bGUID, m_bPushOnly, CEDClient::m_nClientID, m_nProtocol, m_pAddress, CEDClient::m_pGUID, m_pGUID, CConnection::m_pHost, CEDClient::m_pServer, m_pServerAddress, and PROTOCOL_ED2K. Referenced by CDownloadWithTransfers::OnDonkeyCallback(). |
|
Definition at line 536 of file DownloadSource.cpp. References CBTInfo::IsAvailable(), m_bED2K, CDownloadBase::m_bED2K, m_bHashAuth, m_pDownload, CDownloadBase::m_pED2K, CDownloadWithTorrent::m_pTorrent, and CDownloadBase::SetModified(). |
|
Definition at line 516 of file DownloadSource.cpp. References CBTInfo::IsAvailable(), m_bHashAuth, m_bTiger, CDownloadBase::m_bTiger, m_pDownload, CDownloadBase::m_pTiger, CDownloadWithTorrent::m_pTorrent, and CDownloadBase::SetModified(). |
|
Definition at line 496 of file DownloadSource.cpp. References CBTInfo::IsAvailable(), m_bHashAuth, m_bSHA1, CDownloadBase::m_bSHA1, m_pDownload, CDownloadBase::m_pSHA1, CDownloadWithTorrent::m_pTorrent, and CDownloadBase::SetModified(). Referenced by CDownloadTransferHTTP::OnHeaderLine(). |
|
Definition at line 601 of file DownloadSource.cpp. References m_bGUID, and m_pGUID. Referenced by CDownloadWithTransfers::OnAcceptPush(). |
|
Definition at line 60 of file DownloadSource.cpp. References m_bClientExtended, m_bCloseConn, m_bED2K, m_bGUID, m_bHashAuth, m_bPushOnly, m_bReadContent, m_bSelected, m_bSHA1, m_bTiger, m_nColour, m_nFailures, m_nGnutella, m_nIndex, m_nPort, m_nProtocol, m_nServerPort, m_nSortOrder, m_nSpeed, m_pDownload, m_pNext, m_pPrev, m_pTransfer, m_tAttempt, m_tLastSeen, NULL, and PROTOCOL_NULL. Referenced by CDownloadSource(). |
|
Definition at line 375 of file DownloadSource.cpp. References m_nProtocol, m_pTransfer, CShareazaApp::Message(), MSG_ERROR, NULL, PROTOCOL_BT, PROTOCOL_ED2K, PROTOCOL_FTP, PROTOCOL_G1, PROTOCOL_G2, PROTOCOL_HTTP, and theApp. Referenced by CDownloadWithTransfers::OnAcceptPush(), CDownloadWithTransfers::OnDonkeyCallback(), and CDownloadWithTransfers::StartNewTransfer(). |
|
Definition at line 119 of file DownloadSource.h. References m_bGUID, m_nPort, m_nServerPort, m_pAddress, m_pGUID, and m_pServerAddress. |
|
Definition at line 704 of file DownloadSource.cpp. References CDownloadWithSources::GetSourceColour(), m_nColour, and m_pDownload. Referenced by CFragmentBar::DrawSourceImpl(). |
|
Definition at line 674 of file DownloadSource.cpp. References CDownloadWithFile::AreRangesUseful(), detail::List< FragmentT, ContainerT >::empty(), CDownloadWithFile::IsRangeUseful(), CDownloadBase::m_nSize, m_oAvailable, and m_pDownload. Referenced by CDownloadTransferED2K::SendSecondaryRequest(). |
|
Definition at line 417 of file DownloadSource.cpp. References CSettings::Downloads, dtsNull, m_bReadContent, m_nFailures, m_pDownload, CDownloadTransfer::m_pSource, m_pTransfer, m_tAttempt, CSettings::sDownloads::NeverDrop, NULL, CDownloadWithSources::RemoveSource(), CSettings::sDownloads::RetryDelay, CDownloadBase::SetModified(), CDownloadTransfer::SetState(), and Settings. Referenced by CDownloadTransfer::Close(). |
|
Definition at line 464 of file DownloadSource.cpp. References m_tAttempt. |
|
|
Definition at line 395 of file DownloadSource.cpp. References CDownloadTransfer::Close(), m_pDownload, CDownloadTransfer::m_pSource, m_pTransfer, NULL, CDownloadWithSources::RemoveSource(), and TS_TRUE. Referenced by CDownloadTransfer::Close(), and CDownloadWithTransfers::StartNewTransfer(). |
|
Definition at line 228 of file DownloadSource.cpp. References CSourceURL::m_bBTC, CSourceURL::m_bED2K, m_bED2K, m_bGUID, m_bPushOnly, CSourceURL::m_bSHA1, m_bSHA1, CSourceURL::m_nPort, m_nPort, CSourceURL::m_nProtocol, m_nProtocol, CSourceURL::m_nServerPort, m_nServerPort, CSourceURL::m_pAddress, m_pAddress, CSourceURL::m_pBTC, m_pGUID, CSourceURL::m_pServerAddress, m_pServerAddress, m_sURL, CShareazaApp::Message(), MSG_ERROR, CSourceURL::Parse(), PROTOCOL_BT, PROTOCOL_ED2K, and theApp. Referenced by CDownloadSource(), and Serialize(). |
|
Definition at line 262 of file DownloadSource.cpp. References m_bClientExtended, m_bCloseConn, m_bED2K, m_bGUID, m_bHashAuth, m_bPushOnly, m_bReadContent, m_bSHA1, m_bTiger, m_nIndex, m_nPort, m_nProtocol, m_nServerPort, m_nSpeed, m_oPastFragments, m_pAddress, m_pGUID, m_pServerAddress, m_sName, m_sNick, m_sServer, m_sURL, m_tLastSeen, ResolveURL(), detail::SerializeIn2(), and detail::SerializeOut2(). Referenced by CDownloadWithSources::Serialize(), and CDownload::SerializeOld(). |
|
|
Definition at line 487 of file DownloadSource.cpp. References m_nGnutella, m_pDownload, and CDownloadBase::SetModified(). Referenced by CDownloadTransferHTTP::OnHeaderLine(). |
|
Definition at line 479 of file DownloadSource.cpp. References m_pDownload, m_tLastSeen, and CDownloadBase::SetModified(). Referenced by CDownloadTransferED2K::OnConnected(), CDownloadTransferBT::OnConnected(), CDownloadTransferFTP::OnHeaderLine(), and CDownloadTransferHTTP::SendRequest(). |
|
Definition at line 472 of file DownloadSource.cpp. References m_bReadContent, m_nFailures, m_pDownload, and CDownloadBase::SetModified(). Referenced by CDownloadTransferED2K::OnCompressedPart(), CDownloadTransferBT::OnPiece(), CDownloadTransferED2K::OnSendingPart(), and CDownloadTransferHTTP::ReadContent(). |
|
Definition at line 686 of file DownloadSource.cpp. References dtsDownloading, CDownloadTransfer::m_nLength, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nState, m_oPastFragments, m_pTransfer, NULL, and detail::overlaps(). |
|
Definition at line 79 of file DownloadSource.h. Referenced by CDownloadSource(), Construct(), CEDClient::DeriveSoftwareVersion(), CEDClient::DeriveVersion(), CBTClient::DetermineUserAgent(), CBTClient::OnBeHandshake(), and Serialize(). |
|
Definition at line 75 of file DownloadSource.h. Referenced by CDownloadTransfer::ChunkifyRequest(), Construct(), CDownloadTransferHTTP::OnHeadersComplete(), and Serialize(). |
|
Definition at line 69 of file DownloadSource.h. Referenced by CDownloadSource(), CheckHash(), Construct(), ResolveURL(), and Serialize(). |
|
Definition at line 57 of file DownloadSource.h. Referenced by CDownloadSource(), CheckDonkey(), CheckPush(), Construct(), Equals(), CDownloadTransferED2K::Initiate(), CDownloadTransferED2K::OnConnected(), PushRequest(), ResolveURL(), and Serialize(). |
|
Definition at line 66 of file DownloadSource.h. Referenced by CDownloadSource(), CheckHash(), Construct(), and Serialize(). |
|
Definition at line 74 of file DownloadSource.h. Referenced by CDownloadSource(), CheckDonkey(), Construct(), CDownloadWithTorrent::CreateTorrentTransfer(), CBTClient::DetermineUserAgent(), CDownloadWithSources::GetSourceURLs(), CDownloadTipCtrl::OnCalcSize(), CDownloadsCtrl::PaintSource(), ResolveURL(), and Serialize(). |
|
Definition at line 76 of file DownloadSource.h. Referenced by AddFragment(), Construct(), CFragmentBar::DrawSourceImpl(), OnFailure(), Serialize(), and SetValid(). |
|
Definition at line 53 of file DownloadSource.h. Referenced by Construct(), CDownloadsCtrl::OnLButtonDblClk(), CDownloadsCtrl::OnLButtonDown(), CDownloadsCtrl::PaintSource(), CDownloadsCtrl::SelectAll(), and CDownloadsCtrl::SelectTo(). |
|
Definition at line 67 of file DownloadSource.h. Referenced by CDownloadSource(), CheckHash(), Construct(), ResolveURL(), CDownloadTransferHTTP::SendRequest(), and Serialize(). |
|
Definition at line 68 of file DownloadSource.h. Referenced by CDownloadSource(), CheckHash(), Construct(), and Serialize(). |
|
Definition at line 82 of file DownloadSource.h. Referenced by Construct(), and GetColour(). |
|
Definition at line 84 of file DownloadSource.h. Referenced by Construct(), OnFailure(), and SetValid(). |
|
Definition at line 78 of file DownloadSource.h. Referenced by CanInitiate(), Construct(), CDownloadTransferHTTP::SendRequest(), and SetGnutella(). |
|
Definition at line 65 of file DownloadSource.h. Referenced by CDownloadSource(), Construct(), PushRequest(), and Serialize(). |
|
Definition at line 60 of file DownloadSource.h. Referenced by CDownloadSource(), CBTClient::Connect(), Construct(), Equals(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CDownloadTransferED2K::Initiate(), PushRequest(), ResolveURL(), CDownloadTransferHTTP::SendRequest(), CDownloadWithSources::Serialize(), and Serialize(). |
|
|
Definition at line 62 of file DownloadSource.h. Referenced by Construct(), Equals(), CDownloadTransferED2K::Initiate(), PushRequest(), ResolveURL(), and Serialize(). |
|
Definition at line 81 of file DownloadSource.h. Referenced by Construct(), CDownloadTransfer::SetState(), and CDownloadWithSources::SortSource(). |
|
|
|
Definition at line 86 of file DownloadSource.h. Referenced by AddFragment(), CFragmentBar::DrawSourceImpl(), Serialize(), and TouchedRange(). |
|
|
|
Definition at line 58 of file DownloadSource.h. Referenced by CDownloadSource(), CheckDonkey(), CheckPush(), CDownloadWithTorrent::CreateTorrentTransfer(), Equals(), CDownloadTransferED2K::Initiate(), CDownloadTransferED2K::OnConnected(), CBTClient::OnHandshake2(), PushRequest(), ResolveURL(), and Serialize(). |
|
|
Definition at line 50 of file DownloadSource.h. Referenced by Construct(), CDownloadWithSources::RemoveSource(), CDownloadWithSources::Serialize(), and CDownloadWithSources::SortSource(). |
|
Definition at line 61 of file DownloadSource.h. Referenced by CheckDonkey(), Equals(), CDownloadTransferED2K::Initiate(), CDownloadTipCtrl::OnCalcSize(), CDownloadsCtrl::PaintSource(), PushRequest(), ResolveURL(), and Serialize(). |
|
|
Definition at line 64 of file DownloadSource.h. Referenced by CDownloadSource(), and Serialize(). |
|
Definition at line 72 of file DownloadSource.h. Referenced by CBTClient::DetermineUserAgent(), CBTClient::OnBeHandshake(), CDownloadTipCtrl::OnCalcSize(), CDownloadTransferED2K::OnConnected(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadsCtrl::PaintSource(), and Serialize(). |
|
|
Definition at line 55 of file DownloadSource.h. Referenced by CDownloadSource(), CDownloadTipCtrl::OnCalcSize(), ResolveURL(), CDownloadTransferFTP::SendCommand(), CDownloadTransferHTTP::SendRequest(), CDownloadWithSources::Serialize(), and Serialize(). |
|
Definition at line 83 of file DownloadSource.h. Referenced by Construct(), OnFailure(), CDownloadTransferHTTP::OnHeadersComplete(), CDownloadTransferED2K::OnQueueRank(), OnResume(), CEDClient::OnUdpQueueFull(), CDownloadsCtrl::PaintSource(), PushRequest(), and CDownloadTransferED2K::SendSecondaryRequest(). |
|
Definition at line 77 of file DownloadSource.h. Referenced by CDownloadSource(), Construct(), Serialize(), and SetLastSeen(). |