#include <DownloadTransferHTTP.h>
Inheritance diagram for CDownloadTransferHTTP:
Public Member Functions | |
CDownloadTransferHTTP (CDownloadSource *pSource) | |
virtual | ~CDownloadTransferHTTP () |
virtual BOOL | Initiate () |
BOOL | AcceptPush (CConnection *pConnection) |
virtual void | Close (TRISTATE bKeepSource) |
virtual void | Boost () |
virtual DWORD | GetAverageSpeed () |
virtual BOOL | SubtractRequested (FF::SimpleFragmentList &ppFragments) |
virtual BOOL | OnRun () |
Protected Member Functions | |
BOOL | StartNextFragment () |
BOOL | SendRequest () |
BOOL | ReadResponseLine () |
BOOL | ReadContent () |
BOOL | ReadTiger () |
BOOL | ReadMetadata () |
BOOL | ReadFlush () |
virtual BOOL | OnConnected () |
virtual BOOL | OnRead () |
virtual void | OnDropped (BOOL bError) |
virtual BOOL | OnHeaderLine (CString &strHeader, CString &strValue) |
virtual BOOL | OnHeadersComplete () |
Protected Attributes | |
DWORD | m_nRequests |
DWORD | m_tRequest |
DWORD | m_tContent |
BOOL | m_bBadResponse |
BOOL | m_bBusyFault |
BOOL | m_bRangeFault |
BOOL | m_bKeepAlive |
BOOL | m_bHashMatch |
CString | m_sTigerTree |
BOOL | m_bTigerFetch |
BOOL | m_bTigerIgnore |
CString | m_sMetadata |
BOOL | m_bMetaFetch |
BOOL | m_bMetaIgnore |
BOOL | m_bGotRange |
BOOL | m_bGotRanges |
BOOL | m_bQueueFlag |
QWORD | m_nContentLength |
CString | m_sContentType |
DWORD | m_nRetryDelay |
|
Definition at line 50 of file DownloadTransferHTTP.cpp. References CSettings::Downloads, m_bBadResponse, m_bBusyFault, m_bHashMatch, m_bMetaFetch, m_bMetaIgnore, m_bRangeFault, m_bTigerFetch, m_bTigerIgnore, m_nRequests, m_nRetryDelay, m_tContent, CSettings::sDownloads::RetryDelay, and Settings. |
|
Definition at line 67 of file DownloadTransferHTTP.cpp. |
|
|
Reimplemented from CDownloadTransfer. Definition at line 138 of file DownloadTransferHTTP.cpp. References CConnection::m_mInput, CConnection::m_mOutput, NULL, and TCPBandwidthMeter::pLimit. |
|
Reimplemented from CDownloadTransfer. Definition at line 118 of file DownloadTransferHTTP.cpp. References CDownloadSource::AddFragment(), CTransfer::Close(), dtsDownloading, CDownloadTransfer::m_bRecvBackwards, CDownloadTransfer::m_nLength, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nPosition, CDownloadTransfer::m_nState, CDownloadTransfer::m_pSource, and NULL. |
|
Reimplemented from CDownloadTransfer. Definition at line 143 of file DownloadTransferHTTP.cpp. References dtsDownloading, CDownloadTransfer::m_nPosition, CDownloadSource::m_nSpeed, CDownloadTransfer::m_nState, CDownloadTransfer::m_pSource, and m_tContent. |
|
|
Reimplemented from CConnection. Definition at line 157 of file DownloadTransferHTTP.cpp. References IDS_DOWNLOAD_CONNECTED, CConnection::m_sAddress, CConnection::m_tConnected, CShareazaApp::Message(), MSG_DEFAULT, StartNextFragment(), and theApp. |
|
Reimplemented from CConnection. Definition at line 1283 of file DownloadTransferHTTP.cpp. References CTransfer::Close(), CSettings::Downloads, dtsBusy, dtsConnecting, dtsDownloading, IDS_DOWNLOAD_BUSY, IDS_DOWNLOAD_CONNECT_ERROR, IDS_DOWNLOAD_DROPPED, m_bBusyFault, m_bQueueFlag, CDownloadTransfer::m_nState, CDownloadTransfer::m_pSource, CConnection::m_sAddress, CShareazaApp::Message(), MSG_ERROR, NULL, CDownloadSource::PushRequest(), CSettings::sDownloads::RetryDelay, Settings, theApp, TS_TRUE, and TS_UNKNOWN. |
|
|
|
Reimplemented from CConnection. Definition at line 497 of file DownloadTransferHTTP.cpp. References dtsDownloading, dtsFlushing, dtsHeaders, dtsMetadata, dtsRequesting, dtsTiger, CDownloadTransfer::m_nState, CConnection::OnRead(), ReadContent(), ReadFlush(), CConnection::ReadHeaders(), ReadMetadata(), ReadResponseLine(), and ReadTiger(). |
|
|
|
|
Definition at line 1129 of file DownloadTransferHTTP.cpp. References CXMLElement::FromString(), CDownloadTransfer::m_nLength, CBuffer::m_nLength, CDownloadTransfer::m_pDownload, CConnection::m_pInput, CDownloadWithSources::m_pXML, NULL, CBuffer::ReadString(), CBuffer::Remove(), and StartNextFragment(). Referenced by OnHeadersComplete(), and OnRead(). |
|
Definition at line 531 of file DownloadTransferHTTP.cpp. References _tcsistr(), CTransfer::Close(), dtsHeaders, IDS_DOWNLOAD_HTTPCODE, IDS_DOWNLOAD_NOHTTP, m_bBadResponse, m_bBusyFault, m_bRangeFault, CTransfer::m_pHeaderName, CTransfer::m_pHeaderValue, CConnection::m_pInput, CConnection::m_sAddress, CShareazaApp::Message(), MSG_DEBUG, MSG_ERROR, NULL, CBuffer::ReadLine(), CDownloadTransfer::SetState(), theApp, and TS_FALSE. Referenced by OnRead(). |
|
|
|
|
Implements CDownloadTransfer. Definition at line 257 of file DownloadTransferHTTP.cpp. References dtsDownloading, dtsRequesting, detail::List< FragmentT, ContainerT >::erase(), CDownloadTransfer::m_nLength, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nState, and SIZE_UNKNOWN. |
|
Definition at line 42 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeaderLine(), OnHeadersComplete(), and ReadResponseLine(). |
|
Definition at line 43 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnDropped(), OnHeadersComplete(), OnRun(), ReadResponseLine(), and SendRequest(). |
|
Definition at line 53 of file DownloadTransferHTTP.h. Referenced by OnHeaderLine(), OnHeadersComplete(), and SendRequest(). |
|
Definition at line 54 of file DownloadTransferHTTP.h. Referenced by OnHeaderLine(), OnHeadersComplete(), ReadFlush(), and SendRequest(). |
|
Definition at line 46 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeaderLine(), and SendRequest(). |
|
Definition at line 45 of file DownloadTransferHTTP.h. Referenced by OnHeaderLine(), OnHeadersComplete(), and SendRequest(). |
|
Definition at line 51 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeaderLine(), OnHeadersComplete(), SendRequest(), and StartNextFragment(). |
|
Definition at line 52 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeaderLine(), and StartNextFragment(). |
|
Definition at line 55 of file DownloadTransferHTTP.h. Referenced by OnDropped(), OnHeaderLine(), OnHeadersComplete(), OnRun(), ReadFlush(), and SendRequest(). |
|
Definition at line 44 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeadersComplete(), ReadFlush(), ReadResponseLine(), and SendRequest(). |
|
Definition at line 48 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeaderLine(), OnHeadersComplete(), SendRequest(), and StartNextFragment(). |
|
Definition at line 49 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeaderLine(), and StartNextFragment(). |
|
Definition at line 56 of file DownloadTransferHTTP.h. Referenced by OnHeaderLine(), OnHeadersComplete(), ReadFlush(), and SendRequest(). |
|
Definition at line 39 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), ReadFlush(), SendRequest(), and StartNextFragment(). |
|
Definition at line 58 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), OnHeaderLine(), OnHeadersComplete(), and ReadFlush(). |
|
Definition at line 57 of file DownloadTransferHTTP.h. Referenced by OnHeaderLine(), OnHeadersComplete(), ReadTiger(), and SendRequest(). |
|
Definition at line 50 of file DownloadTransferHTTP.h. Referenced by OnHeaderLine(), SendRequest(), and StartNextFragment(). |
|
Definition at line 47 of file DownloadTransferHTTP.h. Referenced by OnHeaderLine(), SendRequest(), and StartNextFragment(). |
|
Definition at line 41 of file DownloadTransferHTTP.h. Referenced by CDownloadTransferHTTP(), GetAverageSpeed(), and OnHeadersComplete(). |
|
Definition at line 40 of file DownloadTransferHTTP.h. Referenced by OnHeadersComplete(), OnRun(), ReadFlush(), and SendRequest(). |