#include <DownloadTransfer.h>
Inheritance diagram for CDownloadTransfer:
Public Member Functions | |
CDownloadTransfer (CDownloadSource *pSource, PROTOCOLID nProtocol) | |
virtual | ~CDownloadTransfer () |
virtual BOOL | Initiate ()=0 |
virtual void | Close (TRISTATE bKeepSource) |
virtual void | Boost () |
virtual DWORD | GetAverageSpeed () |
virtual DWORD | GetMeasuredSpeed () |
virtual BOOL | SubtractRequested (FF::SimpleFragmentList &ppFragments)=0 |
virtual BOOL | UnrequestRange (QWORD nOffset, QWORD nLength) |
virtual CString | GetStateText (BOOL bLong) |
virtual BOOL | OnRun () |
void | SetState (int nState) |
Public Attributes | |
PROTOCOLID | m_nProtocol |
CDownload * | m_pDownload |
CDownloadTransfer * | m_pDlPrev |
CDownloadTransfer * | m_pDlNext |
CDownloadSource * | m_pSource |
int | m_nState |
int | m_nQueuePos |
int | m_nQueueLen |
CString | m_sQueueName |
QWORD | m_nOffset |
QWORD | m_nLength |
QWORD | m_nPosition |
QWORD | m_nDownloaded |
BOOL | m_bWantBackwards |
BOOL | m_bRecvBackwards |
Protected Member Functions | |
void | ChunkifyRequest (QWORD *pnOffset, QWORD *pnLength, QWORD nChunk, BOOL bVerifyLock) |
|
Definition at line 48 of file DownloadTransfer.cpp. References CDownloadWithTransfers::AddTransfer(), dtsNull, m_bRecvBackwards, m_bWantBackwards, m_nDownloaded, m_nLength, m_nOffset, m_nPosition, m_nProtocol, m_nQueueLen, m_nQueuePos, m_nState, m_pDlNext, m_pDlPrev, CDownloadSource::m_pDownload, m_pDownload, m_pSource, NULL, and SIZE_UNKNOWN. |
|
Definition at line 71 of file DownloadTransfer.cpp. |
|
Reimplemented in CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, and CDownloadTransferHTTP. Definition at line 110 of file DownloadTransfer.cpp. References CConnection::m_mInput, CConnection::m_mOutput, NULL, and TCPBandwidthMeter::pLimit. |
|
|
Reimplemented in CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, and CDownloadTransferHTTP. Definition at line 79 of file DownloadTransfer.cpp. References CTransfer::Close(), dtsNull, m_pDownload, m_pSource, NULL, CDownloadSource::OnFailure(), CDownloadSource::Remove(), CDownloadWithTransfers::RemoveTransfer(), SetState(), TS_FALSE, TS_TRUE, and TS_UNKNOWN. Referenced by CDownloadWithTransfers::OnAcceptPush(), CDownloadWithTransfers::OnDonkeyCallback(), and CDownloadSource::Remove(). |
|
Reimplemented in CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, and CDownloadTransferHTTP. Definition at line 115 of file DownloadTransfer.cpp. References GetMeasuredSpeed(). Referenced by CDownloadWithFile::GetFragment(), and CDownloadWithFile::IsRangeUsefulEnough(). |
|
Reimplemented in CDownloadTransferBT, CDownloadTransferED2K, and CDownloadTransferFTP. Definition at line 120 of file DownloadTransfer.cpp. References CConnection::m_mInput, CConnection::Measure(), and TCPBandwidthMeter::nMeasure. Referenced by GetAverageSpeed(), CDownloadTipCtrl::OnPaint(), CDownloadTipCtrl::OnTimer(), and CDownloadsCtrl::PaintSource(). |
|
Reimplemented in CDownloadTransferBT. Definition at line 129 of file DownloadTransfer.cpp. References dtsBusy, dtsConnecting, dtsDownloading, dtsEnqueue, dtsFlushing, dtsHashset, dtsHeaders, dtsMetadata, dtsQueued, dtsRequesting, dtsTiger, IDS_GENERAL_OF, IDS_STATUS_BUSY, IDS_STATUS_CONNECTING, IDS_STATUS_DOWNLOADING, IDS_STATUS_ENQUEUE, IDS_STATUS_HASHSET, IDS_STATUS_METADATA, IDS_STATUS_Q, IDS_STATUS_QUEUED, IDS_STATUS_REQUESTING, IDS_STATUS_RESPONSE, IDS_STATUS_TIGERTREE, IDS_STATUS_UNKNOWN, LoadString(), m_nQueueLen, m_nQueuePos, m_nState, and m_sQueueName. Referenced by CDownloadTransferBT::GetStateText(), CDownloadTipCtrl::OnPaint(), and CDownloadsCtrl::PaintSource(). |
|
Implemented in CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, and CDownloadTransferHTTP. Referenced by CDownloadWithTransfers::StartNewTransfer(). |
|
Reimplemented from CConnection. Reimplemented in CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, and CDownloadTransferHTTP. Definition at line 194 of file DownloadTransfer.cpp. References CConnection::OnRun(). Referenced by CDownloadTransferHTTP::OnRun(), CDownloadTransferFTP::OnRun(), and CDownloadTransferBT::OnRun(). |
|
|
Implemented in CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, and CDownloadTransferHTTP. |
|
Reimplemented in CDownloadTransferBT. Definition at line 69 of file DownloadTransfer.h. |
|
|
Definition at line 58 of file DownloadTransfer.h. Referenced by CDownloadTransfer(), ChunkifyRequest(), CDownloadTransferHTTP::SendRequest(), CDownloadTransferHTTP::StartNextFragment(), and CDownloadTransferFTP::StartNextFragment(). |
|
|
|
|
|
Definition at line 42 of file DownloadTransfer.h. Referenced by CDownloadTransfer(), CFragmentBar::DrawSource(), CDownloadWithTransfers::OnAcceptPush(), CDownloadWithTransfers::OnDonkeyCallback(), and SetState(). |
|
Definition at line 50 of file DownloadTransfer.h. Referenced by CDownloadTransfer(), GetStateText(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadTransferED2K::OnRankingInfo(), CDownloadTransferHTTP::ReadFlush(), and CDownloadTransferED2K::SetQueueRank(). |
|
|
|
|
Definition at line 44 of file DownloadTransfer.h. Referenced by CDownloadWithTransfers::AddTransfer(), CDownloadTransfer(), and CDownloadWithTransfers::RemoveTransfer(). |
|
|
|
Definition at line 51 of file DownloadTransfer.h. Referenced by GetStateText(), CDownloadTransferHTTP::OnHeaderLine(), and CDownloadTransferHTTP::ReadFlush(). |