Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CTransfer Class Reference

#include <Transfer.h>

Inheritance diagram for CTransfer:

CConnection CBTClient CDownloadTransfer CDownloadTransferFTP::CFTPLIST CDownloadTransferFTP::CFTPRETR CEDClient CHostBrowser CRemote CUploadTransfer List of all members.

Public Member Functions

 CTransfer ()
virtual ~CTransfer ()
virtual BOOL ConnectTo (IN_ADDR *pAddress, WORD nPort)
virtual void AttachTo (CConnection *pConnection)
virtual void Close ()

Public Attributes

DWORD m_nRunCookie
CStringList m_pSourcesSent
CStringArray m_pHeaderName
CStringArray m_pHeaderValue

Protected Member Functions

void ClearHeaders ()
virtual BOOL OnHeaderLine (CString &strHeader, CString &strValue)

Constructor & Destructor Documentation

CTransfer::CTransfer  ) 
 

Definition at line 38 of file Transfer.cpp.

References m_nRunCookie.

CTransfer::~CTransfer  )  [virtual]
 

Definition at line 43 of file Transfer.cpp.

References Close(), and CConnection::m_hSocket.


Member Function Documentation

void CTransfer::AttachTo CConnection pConnection  )  [virtual]
 

Reimplemented from CConnection.

Reimplemented in CBTClient, CEDClient, and CUploadTransferHTTP.

Definition at line 63 of file Transfer.cpp.

References CTransfers::Add(), CConnection::AttachTo(), and Transfers.

Referenced by CDownloadTransferHTTP::AcceptPush(), CUploadTransferHTTP::AttachTo(), CEDClient::AttachTo(), CBTClient::AttachTo(), CRemote::CRemote(), CUploads::OnAccept(), and CHostBrowser::OnPush().

void CTransfer::ClearHeaders  )  [protected]
 

Definition at line 78 of file Transfer.cpp.

References m_pHeaderName, and m_pHeaderValue.

Referenced by CUploadTransfer::ClearRequest(), and CRemote::OnHeadersComplete().

void CTransfer::Close  )  [virtual]
 

Reimplemented from CConnection.

Reimplemented in CBTClient, and CEDClient.

Definition at line 69 of file Transfer.cpp.

References CConnection::Close(), CTransfers::Remove(), and Transfers.

Referenced by CUploadTransferED2K::CheckRanking(), CUploadTransferED2K::Close(), CUploadTransferBT::Close(), CUploadTransfer::Close(), CEDClient::Close(), CDownloadTransferHTTP::Close(), CDownloadTransferFTP::Close(), CDownloadTransferED2K::Close(), CDownloadTransferBT::Close(), CDownloadTransfer::Close(), CBTClient::Close(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CDownloadTransferED2K::Initiate(), CDownloadTransferBT::Initiate(), CDownloadTransferED2K::OnCompressedPart(), CDownloadTransferBT::OnConnected(), CUploadTransferHTTP::OnDropped(), CUploadTransferED2K::OnDropped(), CRemote::OnDropped(), CDownloadTransferHTTP::OnDropped(), CDownloadTransferFTP::OnDropped(), CDownloadTransferED2K::OnDropped(), CDownloadTransferED2K::OnFileNotFound(), CDownloadTransferED2K::OnFileStatus(), CDownloadTransferED2K::OnHashsetAnswer(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadTransferFTP::OnHeaderLine(), CRemote::OnHeadersComplete(), CDownloadTransferHTTP::OnHeadersComplete(), CDownloadTransferED2K::OnQueueRank(), CUploadTransferED2K::OnQueueRelease(), CDownloadTransferED2K::OnRankingInfo(), CRemote::OnRead(), CDownloadTransferFTP::CFTPRETR::OnRead(), CDownloadTransferFTP::CFTPLIST::OnRead(), CUploadTransfer::OnRename(), CUploadTransferBT::OnRequest(), CUploadTransferED2K::OnRequestParts(), CUploadTransferHTTP::OnRun(), CRemote::OnRun(), CDownloadTransferHTTP::OnRun(), CDownloadTransferFTP::OnRun(), CUploadTransferED2K::OnRunEx(), CDownloadTransferED2K::OnRunEx(), CDownloadTransferED2K::OnSendingPart(), CUploadTransferED2K::OpenFile(), CUploadTransferBT::OpenFile(), CDownloadTransferHTTP::ReadContent(), CDownloadTransferHTTP::ReadFlush(), CUploadTransferHTTP::ReadRequest(), CDownloadTransferHTTP::ReadResponseLine(), CUploadTransfer::Remove(), CUploadTransferED2K::Request(), CDownloadTransferED2K::RunQueued(), CDownloadTransferED2K::SendFragmentRequests(), CHostBrowser::SendPush(), CDownloadTransferED2K::SendSecondaryRequest(), CUploadTransferED2K::ServeRequests(), CDownloadTransferHTTP::StartNextFragment(), CDownloadTransferFTP::StartNextFragment(), CUploadTransferED2K::StartNextRequest(), CHostBrowser::Stop(), ~CTransfer(), and CUploadTransfer::~CUploadTransfer().

BOOL CTransfer::ConnectTo IN_ADDR *  pAddress,
WORD  nPort
[virtual]
 

Reimplemented from CConnection.

Definition at line 52 of file Transfer.cpp.

References CTransfers::Add(), CConnection::ConnectTo(), and Transfers.

Referenced by CHostBrowser::Browse(), CBTClient::Connect(), CDownloadTransferHTTP::Initiate(), and CDownloadTransferFTP::Initiate().

BOOL CTransfer::OnHeaderLine CString &  strHeader,
CString &  strValue
[protected, virtual]
 

Reimplemented from CConnection.

Reimplemented in CDownloadTransferFTP, CDownloadTransferHTTP, CHostBrowser, and CUploadTransferHTTP.

Definition at line 84 of file Transfer.cpp.

References m_pHeaderName, m_pHeaderValue, and CConnection::OnHeaderLine().

Referenced by CUploadTransferHTTP::OnHeaderLine(), and CDownloadTransferHTTP::OnHeaderLine().


Member Data Documentation

DWORD CTransfer::m_nRunCookie
 

Definition at line 38 of file Transfer.h.

Referenced by CTransfer(), and CTransfers::OnRunTransfers().

CStringArray CTransfer::m_pHeaderName
 

Definition at line 41 of file Transfer.h.

Referenced by CRemote::CheckCookie(), ClearHeaders(), CUploadTipCtrl::OnCalcSize(), CDownloadTipCtrl::OnCalcSize(), OnHeaderLine(), and CDownloadTransferHTTP::ReadResponseLine().

CStringArray CTransfer::m_pHeaderValue
 

Definition at line 42 of file Transfer.h.

Referenced by CRemote::CheckCookie(), ClearHeaders(), CUploadTipCtrl::OnCalcSize(), CDownloadTipCtrl::OnCalcSize(), OnHeaderLine(), and CDownloadTransferHTTP::ReadResponseLine().

CStringList CTransfer::m_pSourcesSent
 

Definition at line 40 of file Transfer.h.

Referenced by CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestSharedFile(), and CDownloadTransferHTTP::SendRequest().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:13 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2