#include <DownloadTransferFTP.h>
Inheritance diagram for CDownloadTransferFTP:
Public Member Functions | |
CDownloadTransferFTP (CDownloadSource *pSource) | |
virtual | ~CDownloadTransferFTP () |
virtual BOOL | Initiate () |
virtual void | Close (TRISTATE bKeepSource) |
virtual void | Boost () |
virtual DWORD | GetAverageSpeed () |
virtual DWORD | GetMeasuredSpeed () |
virtual BOOL | SubtractRequested (FF::SimpleFragmentList &ppFragments) |
virtual BOOL | OnRun () |
virtual BOOL | OnRead () |
virtual BOOL | OnConnected () |
virtual void | OnDropped (BOOL bError) |
virtual BOOL | OnHeaderLine (CString &strHeader, CString &strValue) |
Protected Types | |
enum | FTP_STATES { ftpConnecting, ftpUSER, ftpPASS, ftpSIZE_TYPE, ftpSIZE, ftpLIST_TYPE, ftpLIST_PASVPORT, ftpLIST, ftpDownloading, ftpRETR_TYPE, ftpRETR_PASVPORT, ftpRETR_REST, ftpRETR, ftpABOR } |
Protected Member Functions | |
BOOL | StartNextFragment () |
BOOL | SendCommand (LPCTSTR args=NULL) |
Protected Attributes | |
FTP_STATES | m_FtpState |
DWORD | m_tRequest |
CFTPLIST | m_LIST |
CFTPRETR | m_RETR |
BOOL | m_bPassive |
BOOL | m_bSizeChecked |
Classes | |
class | CFTPLIST |
class | CFTPRETR |
|
Definition at line 208 of file DownloadTransferFTP.h. |
|
Definition at line 113 of file DownloadTransferFTP.cpp. References m_RETR, and CDownloadTransferFTP::CFTPRETR::SetOwner(). |
|
Definition at line 32 of file DownloadTransferFTP.h. |
|
Reimplemented from CDownloadTransfer. Definition at line 172 of file DownloadTransferFTP.cpp. References m_LIST, CConnection::m_mInput, CConnection::m_mOutput, m_RETR, NULL, and TCPBandwidthMeter::pLimit. |
|
Reimplemented from CDownloadTransfer. Definition at line 155 of file DownloadTransferFTP.cpp. References CDownloadSource::AddFragment(), CTransfer::Close(), dtsDownloading, ftpConnecting, ftpRETR, m_bSizeChecked, m_FtpState, m_LIST, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nPosition, CDownloadTransfer::m_nState, CDownloadTransfer::m_pSource, m_RETR, and NULL. |
|
Reimplemented from CDownloadTransfer. Definition at line 179 of file DownloadTransferFTP.cpp. References GetMeasuredSpeed(), CDownloadSource::m_nSpeed, and CDownloadTransfer::m_pSource. |
|
Reimplemented from CDownloadTransfer. Definition at line 184 of file DownloadTransferFTP.cpp. References m_LIST, CConnection::m_mInput, m_RETR, CConnection::Measure(), and TCPBandwidthMeter::nMeasure. Referenced by GetAverageSpeed(). |
|
|
Reimplemented from CConnection. Definition at line 195 of file DownloadTransferFTP.cpp. References dtsRequesting, IDS_DOWNLOAD_CONNECTED, CConnection::m_sAddress, CConnection::m_tConnected, CShareazaApp::Message(), MSG_DEFAULT, CDownloadTransfer::SetState(), StartNextFragment(), and theApp. |
|
Reimplemented from CConnection. Definition at line 785 of file DownloadTransferFTP.cpp. References CTransfer::Close(), dtsConnecting, dtsDownloading, IDS_DOWNLOAD_CONNECT_ERROR, IDS_DOWNLOAD_DROPPED, CDownloadTransfer::m_nState, CDownloadTransfer::m_pSource, CConnection::m_sAddress, CShareazaApp::Message(), MSG_ERROR, NULL, CDownloadSource::PushRequest(), theApp, TS_TRUE, and TS_UNKNOWN. |
|
|
Reimplemented from CConnection. Definition at line 340 of file DownloadTransferFTP.cpp. References CConnection::m_pInput, CConnection::m_sLastHeader, OnHeaderLine(), CConnection::OnRead(), and CBuffer::ReadLine(). |
|
|
Definition at line 668 of file DownloadTransferFTP.cpp. References CBuffer::Clear(), ftpABOR, ftpLIST, ftpLIST_PASVPORT, ftpLIST_TYPE, ftpPASS, ftpRETR, ftpRETR_PASVPORT, ftpRETR_REST, ftpRETR_TYPE, ftpSIZE, ftpSIZE_TYPE, ftpUSER, m_bPassive, m_FtpState, CDownloadTransfer::m_nOffset, CConnection::m_pOutput, CDownloadTransfer::m_pSource, CConnection::m_sAddress, CSourceURL::m_sLogin, CSourceURL::m_sPassword, CSourceURL::m_sPath, CDownloadSource::m_sURL, m_tRequest, CShareazaApp::Message(), MSG_DEBUG, CSourceURL::ParseFTP(), CBuffer::Print(), and theApp. Referenced by OnHeaderLine(), and StartNextFragment(). |
|
|
Implements CDownloadTransfer. Definition at line 260 of file DownloadTransferFTP.cpp. References dtsDownloading, dtsRequesting, detail::List< FragmentT, ContainerT >::erase(), CDownloadTransfer::m_nLength, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nState, and SIZE_UNKNOWN. |
|
Definition at line 229 of file DownloadTransferFTP.h. Referenced by OnHeaderLine(), and SendCommand(). |
|
Definition at line 230 of file DownloadTransferFTP.h. Referenced by Close(), OnHeaderLine(), and StartNextFragment(). |
|
Definition at line 225 of file DownloadTransferFTP.h. Referenced by Close(), Initiate(), OnHeaderLine(), SendCommand(), and StartNextFragment(). |
|
Definition at line 227 of file DownloadTransferFTP.h. Referenced by Boost(), Close(), GetMeasuredSpeed(), and OnHeaderLine(). |
|
Definition at line 228 of file DownloadTransferFTP.h. Referenced by Boost(), CDownloadTransferFTP(), Close(), GetMeasuredSpeed(), and OnHeaderLine(). |
|
Definition at line 226 of file DownloadTransferFTP.h. Referenced by OnRun(), SendCommand(), and StartNextFragment(). |