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

CUploadTransfer Class Reference

#include <UploadTransfer.h>

Inheritance diagram for CUploadTransfer:

CTransfer CConnection CUploadTransferBT CUploadTransferED2K CUploadTransferHTTP List of all members.

Public Member Functions

 CUploadTransfer (PROTOCOLID nProtocol)
virtual ~CUploadTransfer ()
virtual void Remove (BOOL bMessage=TRUE)
virtual void Close (BOOL bMessage=FALSE)
virtual BOOL Promote ()
virtual BOOL OnRename (LPCTSTR pszSource, LPCTSTR pszTarget)
virtual float GetProgress ()
virtual DWORD GetAverageSpeed ()
virtual DWORD GetMeasuredSpeed ()
virtual void SetSpeedLimit (DWORD nLimit)

Public Attributes

PROTOCOLID m_nProtocol
int m_nState
CUploadQueuem_pQueue
CUploadFilem_pBaseFile
CTransferFilem_pDiskFile
DWORD m_nBandwidth
CString m_sNick
DWORD m_nUserRating
BOOL m_bClientExtended
BOOL m_bSHA1
SHA1 m_pSHA1
BOOL m_bTiger
TIGEROOT m_pTiger
BOOL m_bED2K
MD4 m_pED2K
CString m_sFileName
CString m_sFilePath
QWORD m_nFileBase
QWORD m_nFileSize
BOOL m_bFilePartial
CString m_sFileTags
BOOL m_bLive
DWORD m_nRequests
QWORD m_nUploaded
DWORD m_tContent
QWORD m_nOffset
QWORD m_nLength
QWORD m_nPosition

Protected Member Functions

virtual BOOL OnRun ()
virtual BOOL OnRead ()
virtual BOOL OnWrite ()
virtual void OnQueueKick ()
void LongTermAverage (DWORD tNow)
void RotatingQueue (DWORD tNow)
void CalculateRating (DWORD tNow)
void ClearHashes ()
BOOL HashesFromURN (LPCTSTR pszURN)
void ClearRequest ()
BOOL RequestComplete (CLibraryFile *pFile)
BOOL RequestPartial (CDownload *pFile)
void StartSending (int nState)
void AllocateBaseFile ()
void CloseFile ()

Protected Attributes

BOOL m_bStopTransfer
DWORD m_tRotateTime
DWORD m_tAverageTime
int m_nAveragePos
DWORD m_nAverageRate [ULA_SLOTS]
DWORD m_tRatingTime

Constructor & Destructor Documentation

CUploadTransfer::CUploadTransfer PROTOCOLID  nProtocol  ) 
 

Definition at line 52 of file UploadTransfer.cpp.

References CUploads::Add(), CSettings::Bandwidth, ClearRequest(), m_bClientExtended, m_bLive, m_bStopTransfer, m_nAveragePos, m_nAverageRate, m_nBandwidth, m_nProtocol, m_nRequests, m_nState, m_nUploaded, m_nUserRating, m_pBaseFile, m_pDiskFile, m_pQueue, m_tAverageTime, m_tRatingTime, m_tRotateTime, NULL, CSettings::sBandwidth::Request, Settings, Uploads, upsNull, and urNew.

CUploadTransfer::~CUploadTransfer  )  [virtual]
 

Definition at line 79 of file UploadTransfer.cpp.

References CTransfer::Close(), CUploads::Remove(), CUploadFiles::Remove(), UploadFiles, and Uploads.


Member Function Documentation

void CUploadTransfer::AllocateBaseFile  )  [protected]
 

Definition at line 470 of file UploadTransfer.cpp.

References CUploadFiles::GetFile(), m_bSHA1, m_nFileSize, m_pBaseFile, m_pSHA1, m_sFileName, m_sFilePath, NULL, and UploadFiles.

Referenced by CUploadTransferBT::OnRequest(), CUploadTransferHTTP::QueueRequest(), and CUploadTransferED2K::Request().

void CUploadTransfer::CalculateRating DWORD  tNow  )  [protected]
 

Definition at line 326 of file UploadTransfer.cpp.

References Downloads, CDownloads::GetAmountDownloadedFrom(), m_nUploaded, m_nUserRating, CConnection::m_pHost, m_tRatingTime, urCredit, urNew, urNotSharing, and urSharing.

Referenced by OnRun().

void CUploadTransfer::ClearHashes  )  [protected]
 

Definition at line 354 of file UploadTransfer.cpp.

References m_bED2K, m_bSHA1, and m_bTiger.

Referenced by ClearRequest(), CUploadTransferHTTP::RequestTigerTreeDIME(), and CUploadTransferHTTP::RequestTigerTreeRaw().

void CUploadTransfer::ClearRequest  )  [protected]
 

Definition at line 370 of file UploadTransfer.cpp.

References ClearHashes(), CTransfer::ClearHeaders(), m_bFilePartial, m_nFileBase, m_nFileSize, m_nLength, m_nOffset, m_nPosition, m_nRequests, m_sFileName, m_sFilePath, m_sFileTags, and SIZE_UNKNOWN.

Referenced by CUploadTransferED2K::Cleanup(), CUploadTransfer(), and CUploadTransferHTTP::ReadRequest().

void CUploadTransfer::Close BOOL  bMessage = FALSE  )  [virtual]
 

Reimplemented in CUploadTransferBT, and CUploadTransferED2K.

Definition at line 108 of file UploadTransfer.cpp.

References CTransfer::Close(), CloseFile(), CUploadQueues::Dequeue(), IDS_UPLOAD_DROPPED, m_nState, m_nUploaded, CConnection::m_sAddress, CShareazaApp::Message(), MSG_SYSTEM, Remove(), theApp, UploadQueues, and upsNull.

Referenced by CUploads::EnforcePerHostLimit(), and CUploadsWnd::OnUploadsDisconnect().

void CUploadTransfer::CloseFile  )  [protected]
 

Definition at line 476 of file UploadTransfer.cpp.

References m_pDiskFile, NULL, and CTransferFile::Release().

Referenced by CUploadTransferED2K::Cleanup(), CUploadTransferBT::Close(), and Close().

DWORD CUploadTransfer::GetAverageSpeed  )  [virtual]
 

Definition at line 177 of file UploadTransfer.cpp.

References GetMeasuredSpeed(), m_nLength, m_nPosition, m_nState, m_tContent, SIZE_UNKNOWN, and upsUploading.

Referenced by CDownloadWithTorrent::ChokeTorrent(), and CUploadTransferHTTP::OnCompleted().

DWORD CUploadTransfer::GetMeasuredSpeed  )  [virtual]
 

Reimplemented in CUploadTransferBT, and CUploadTransferED2K.

Definition at line 184 of file UploadTransfer.cpp.

References CConnection::m_mOutput, CConnection::Measure(), and TCPBandwidthMeter::nMeasure.

Referenced by GetAverageSpeed(), LongTermAverage(), CUploadTipCtrl::OnPaint(), CUploads::OnRun(), CRemote::PageUploads(), and CUploadsCtrl::PaintFile().

float CUploadTransfer::GetProgress  )  [virtual]
 

Definition at line 171 of file UploadTransfer.cpp.

References m_nLength, m_nPosition, m_nState, SIZE_UNKNOWN, and upsUploading.

BOOL CUploadTransfer::HashesFromURN LPCTSTR  pszURN  )  [protected]
 

Definition at line 359 of file UploadTransfer.cpp.

References CED2K::HashFromURN(), CTigerNode::HashFromURN(), CSHA::HashFromURN(), m_bED2K, m_bSHA1, m_bTiger, m_pED2K, m_pSHA1, and m_pTiger.

Referenced by CUploadTransferHTTP::OnHeaderLine().

void CUploadTransfer::LongTermAverage DWORD  tNow  )  [protected]
 

Definition at line 247 of file UploadTransfer.cpp.

References CSettings::sLive::BandwidthScale, CSettings::sUploads::ClampdownFactor, CSettings::sUploads::ClampdownFloor, GetMeasuredSpeed(), CSettings::Live, m_nAveragePos, m_nAverageRate, m_nBandwidth, m_nLength, m_nState, CConnection::m_sAddress, m_tAverageTime, CShareazaApp::Message(), MSG_DEBUG, Settings, SIZE_UNKNOWN, CSettings::SmartVolume(), theApp, ULA_SLOTS, CSettings::Uploads, and upsUploading.

Referenced by OnRun().

virtual void CUploadTransfer::OnQueueKick  )  [inline, protected, virtual]
 

Reimplemented in CUploadTransferED2K.

Definition at line 100 of file UploadTransfer.h.

BOOL CUploadTransfer::OnRead  )  [protected, virtual]
 

Reimplemented from CConnection.

Reimplemented in CUploadTransferHTTP.

Definition at line 214 of file UploadTransfer.cpp.

References CUploads::EnforcePerHostLimit(), m_bLive, CConnection::m_mInput, CConnection::OnRead(), TCPBandwidthMeter::tLast, and Uploads.

Referenced by CUploadTransferHTTP::OnRead().

BOOL CUploadTransfer::OnRename LPCTSTR  pszSource,
LPCTSTR  pszTarget
[virtual]
 

Definition at line 134 of file UploadTransfer.cpp.

References CTransfer::Close(), IDS_UPLOAD_DELETED, m_nState, m_pDiskFile, CConnection::m_sAddress, m_sFileName, m_sFilePath, CShareazaApp::Message(), MSG_ERROR, NULL, CTransferFiles::Open(), CTransferFile::Release(), theApp, TransferFiles, and upsUploading.

BOOL CUploadTransfer::OnRun  )  [protected, virtual]
 

Reimplemented from CConnection.

Reimplemented in CUploadTransferBT, CUploadTransferED2K, and CUploadTransferHTTP.

Definition at line 201 of file UploadTransfer.cpp.

References CalculateRating(), LongTermAverage(), CConnection::OnRun(), and RotatingQueue().

Referenced by CUploadTransferHTTP::OnRun(), and CUploadTransferED2K::OnRunEx().

BOOL CUploadTransfer::OnWrite  )  [protected, virtual]
 

Reimplemented from CConnection.

Reimplemented in CUploadTransferHTTP.

Definition at line 229 of file UploadTransfer.cpp.

References CUploads::EnforcePerHostLimit(), m_bLive, CConnection::m_mOutput, CConnection::OnWrite(), TCPBandwidthMeter::tLast, and Uploads.

Referenced by CUploadTransferHTTP::OnWrite().

BOOL CUploadTransfer::Promote  )  [virtual]
 

Definition at line 124 of file UploadTransfer.cpp.

References CUploadQueues::Dequeue(), CUploadQueues::Enqueue(), m_nState, UploadQueues, and upsQueued.

Referenced by CPrivateChatFrame::OnChatPriority().

void CUploadTransfer::Remove BOOL  bMessage = TRUE  )  [virtual]
 

Definition at line 89 of file UploadTransfer.cpp.

References CTransfer::Close(), IDS_UPLOAD_REMOVE, m_nUploaded, CConnection::m_sAddress, m_sFileName, CShareazaApp::Message(), MSG_SYSTEM, NULL, and theApp.

Referenced by Close(), CUploadTransferHTTP::OnHeadersComplete(), CUploadsWnd::OnSecurityBan(), CUploadsWnd::OnTimer(), CUploadsWnd::OnUploadsClearCompleted(), and CUploadFile::Remove().

BOOL CUploadTransfer::RequestComplete CLibraryFile pFile  )  [protected]
 

Definition at line 389 of file UploadTransfer.cpp.

References CLibraryFile::GetPath(), CLibraryFile::m_bED2K, m_bED2K, m_bFilePartial, CLibraryFile::m_bSHA1, m_bSHA1, CLibraryFile::m_bTiger, m_bTiger, m_nFileBase, m_nFileSize, CLibraryFile::m_nSize, CLibraryFile::m_nVirtualBase, CLibraryFile::m_nVirtualSize, CLibraryFile::m_pED2K, m_pED2K, CLibraryFile::m_pSHA1, m_pSHA1, CLibraryFile::m_pTiger, m_pTiger, m_sFileName, m_sFilePath, m_sFileTags, CLibraryFile::m_sName, CLibraryFile::m_sShareTags, and NULL.

Referenced by CUploadTransferED2K::Request(), and CUploadTransferHTTP::RequestSharedFile().

BOOL CUploadTransfer::RequestPartial CDownload pFile  )  [protected]
 

Definition at line 411 of file UploadTransfer.cpp.

References CDownloadBase::m_bED2K, m_bED2K, m_bFilePartial, CDownloadBase::m_bSHA1, m_bSHA1, CDownloadBase::m_bTiger, m_bTiger, m_nFileBase, m_nFileSize, CDownloadBase::m_nSize, CDownloadBase::m_pED2K, m_pED2K, CDownloadBase::m_pSHA1, m_pSHA1, CDownloadBase::m_pTiger, m_pTiger, m_sFileName, m_sFilePath, m_sFileTags, CDownloadBase::m_sLocalName, CDownloadBase::m_sRemoteName, and NULL.

Referenced by CUploadTransferBT::CUploadTransferBT(), CUploadTransferED2K::Request(), and CUploadTransferHTTP::RequestPartialFile().

void CUploadTransfer::RotatingQueue DWORD  tNow  )  [protected]
 

Definition at line 293 of file UploadTransfer.cpp.

References CUploadQueues::Check(), CUploadQueue::IsActive(), CUploadQueue::m_bRewardUploaders, CUploadQueue::m_bRotate, m_bStopTransfer, CUploadQueue::m_nRotateTime, m_nState, m_nUserRating, m_pQueue, CUploadQueues::m_pSection, m_tRotateTime, NULL, UploadQueues, upsUploading, and urCredit.

Referenced by OnRun().

void CUploadTransfer::SetSpeedLimit DWORD  nLimit  )  [virtual]
 

Definition at line 190 of file UploadTransfer.cpp.

References m_nAveragePos, m_nAverageRate, m_nBandwidth, m_tAverageTime, and ULA_SLOTS.

Referenced by CUploadQueue::RescaleBandwidth(), and CUploadQueue::SpreadBandwidth().

void CUploadTransfer::StartSending int  nState  )  [protected]
 

Definition at line 462 of file UploadTransfer.cpp.

References CConnection::m_mOutput, m_nPosition, m_nState, m_tContent, CConnection::OnWrite(), and TCPBandwidthMeter::tLast.

Referenced by CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferHTTP::QueueRequest(), CUploadTransferHTTP::RequestHostBrowse(), CUploadTransferHTTP::RequestMetadata(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestTigerTreeDIME(), CUploadTransferHTTP::RequestTigerTreeRaw(), and CUploadTransferHTTP::SendResponse().


Member Data Documentation

BOOL CUploadTransfer::m_bClientExtended
 

Definition at line 55 of file UploadTransfer.h.

Referenced by CUploadTransfer(), CBTClient::DetermineUserAgent(), and CBTClient::OnBeHandshake().

BOOL CUploadTransfer::m_bED2K
 

Definition at line 61 of file UploadTransfer.h.

Referenced by ClearHashes(), HashesFromURN(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferED2K::Request(), RequestComplete(), RequestPartial(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestSharedFile(), and CUploadTransferHTTP::SendFileHeaders().

BOOL CUploadTransfer::m_bFilePartial
 

Definition at line 67 of file UploadTransfer.h.

Referenced by ClearRequest(), CUploadQueues::Enqueue(), CUploadTransferHTTP::QueueRequest(), RequestComplete(), and RequestPartial().

BOOL CUploadTransfer::m_bLive
 

Definition at line 70 of file UploadTransfer.h.

Referenced by CUploadTransfer(), CUploads::EnforcePerHostLimit(), CUploads::OnAccept(), OnRead(), and OnWrite().

BOOL CUploadTransfer::m_bSHA1
 

Definition at line 57 of file UploadTransfer.h.

Referenced by AllocateBaseFile(), CUploads::CanUploadFileTo(), ClearHashes(), HashesFromURN(), CUploadTransferHTTP::OnHeadersComplete(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferHTTP::QueueRequest(), RequestComplete(), RequestPartial(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestSharedFile(), and CUploadTransferHTTP::SendFileHeaders().

BOOL CUploadTransfer::m_bStopTransfer [protected]
 

Definition at line 78 of file UploadTransfer.h.

Referenced by CUploadTransfer(), CUploadTransferHTTP::QueueRequest(), RotatingQueue(), and CUploadTransferED2K::ServeRequests().

BOOL CUploadTransfer::m_bTiger
 

Definition at line 59 of file UploadTransfer.h.

Referenced by ClearHashes(), HashesFromURN(), CUploadTransferHTTP::OpenFileSendHeaders(), RequestComplete(), RequestPartial(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestSharedFile(), and CUploadTransferHTTP::SendFileHeaders().

int CUploadTransfer::m_nAveragePos [protected]
 

Definition at line 81 of file UploadTransfer.h.

Referenced by CUploadTransfer(), LongTermAverage(), and SetSpeedLimit().

DWORD CUploadTransfer::m_nAverageRate[ULA_SLOTS] [protected]
 

Definition at line 82 of file UploadTransfer.h.

Referenced by CUploadTransfer(), LongTermAverage(), and SetSpeedLimit().

DWORD CUploadTransfer::m_nBandwidth
 

Definition at line 52 of file UploadTransfer.h.

Referenced by CUploadTransferHTTP::AttachTo(), CUploadTransfer(), CUploadTransferED2K::CUploadTransferED2K(), CUploadQueue::GetAvailableBandwidth(), LongTermAverage(), CUploadTransferED2K::OnConnected(), CUploadTipCtrl::OnPaint(), CUploadQueue::RescaleBandwidth(), SetSpeedLimit(), and CUploadQueue::StealPosition().

QWORD CUploadTransfer::m_nFileBase
 

Definition at line 65 of file UploadTransfer.h.

Referenced by ClearRequest(), CUploadTransferED2K::DispatchNextChunk(), CUploadTransferHTTP::OnWrite(), RequestComplete(), RequestPartial(), and CUploadTransferHTTP::RequestPartialFile().

QWORD CUploadTransfer::m_nFileSize
 

Definition at line 66 of file UploadTransfer.h.

Referenced by AllocateBaseFile(), ClearRequest(), CUploadQueues::Enqueue(), CUploadTransferHTTP::OnHeadersComplete(), CUploadTransferBT::OnRequest(), CUploadTransferED2K::OnRequestParts(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferHTTP::QueueRequest(), RequestComplete(), RequestPartial(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestSharedFile(), CUploadTransferHTTP::RequestTigerTreeDIME(), CUploadTransferBT::ServeRequests(), and CUploadTransferED2K::StartNextRequest().

QWORD CUploadTransfer::m_nLength
 

Definition at line 75 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::CheckFinishedRequest(), ClearRequest(), CUploadTransferED2K::DispatchNextChunk(), CFragmentBar::DrawUpload(), GetAverageSpeed(), GetProgress(), LongTermAverage(), CUploadTransferHTTP::OnCompleted(), CUploadTransferHTTP::OnDropped(), CUploadTransferHTTP::OnHeaderLine(), CUploadTransferHTTP::OnWrite(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestSharedFile(), CUploadTransferHTTP::RequestTigerTreeDIME(), CUploadTransferHTTP::RequestTigerTreeRaw(), CUploadTransferED2K::ServeRequests(), CUploadTransferBT::ServeRequests(), and CUploadTransferED2K::StartNextRequest().

QWORD CUploadTransfer::m_nOffset
 

Definition at line 74 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::CheckFinishedRequest(), CUploadTransferED2K::Cleanup(), ClearRequest(), CUploadTransferED2K::DispatchNextChunk(), CFragmentBar::DrawUpload(), CUploadTransferHTTP::OnCompleted(), CUploadTransferHTTP::OnDropped(), CUploadTransferHTTP::OnHeaderLine(), CUploadTransferHTTP::OnWrite(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestSharedFile(), CUploadTransferHTTP::RequestTigerTreeDIME(), CUploadTransferHTTP::RequestTigerTreeRaw(), CUploadTransferBT::ServeRequests(), and CUploadTransferED2K::StartNextRequest().

QWORD CUploadTransfer::m_nPosition
 

Definition at line 76 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::CheckFinishedRequest(), CUploadTransferED2K::Cleanup(), ClearRequest(), CUploadTransferED2K::DispatchNextChunk(), CFragmentBar::DrawUpload(), GetAverageSpeed(), GetProgress(), CUploadTransferHTTP::OnDropped(), CUploadTransferHTTP::OnWrite(), CUploadTransferBT::ServeRequests(), CUploadTransferED2K::StartNextRequest(), and StartSending().

PROTOCOLID CUploadTransfer::m_nProtocol
 

Definition at line 47 of file UploadTransfer.h.

Referenced by CDownloadWithTorrent::ChokeTorrent(), CUploadTransfer(), CFragmentBar::DrawUpload(), CUploadQueues::Enqueue(), CUploadsCtrl::GetFileIterator(), CUploadsCtrl::GetNextFile(), CUploads::GetTorrentCount(), CUploadTipCtrl::OnPaint(), CUploads::OnRun(), CUploadsWnd::OnUploadsClear(), CUploadsWnd::OnUploadsDisconnect(), CRemote::PageUploads(), CUploadsCtrl::PaintFile(), CUploadTransferHTTP::QueueRequest(), and CDownloadWithTorrent::UploadExists().

DWORD CUploadTransfer::m_nRequests
 

Definition at line 71 of file UploadTransfer.h.

Referenced by ClearRequest(), CUploadTransfer(), and CUploadTransferHTTP::SendDefaultHeaders().

int CUploadTransfer::m_nState
 

Definition at line 48 of file UploadTransfer.h.

Referenced by CUploads::AllowMoreTo(), CUploadTransferHTTP::AttachTo(), CUploads::CanUploadFileTo(), CUploadTransferED2K::CheckFinishedRequest(), CUploadTransferED2K::CheckRanking(), CUploadTransferED2K::Cleanup(), CUploadTransferED2K::Close(), Close(), CUploadTransfer(), CUploadTransferBT::CUploadTransferBT(), CUploadTransferED2K::CUploadTransferED2K(), CUploadTransferED2K::DispatchNextChunk(), CUploads::EnforcePerHostLimit(), CUploadFile::GetActive(), GetAverageSpeed(), CUploads::GetCount(), CUploadsCtrl::GetFileIterator(), CUploadsCtrl::GetNextFile(), GetProgress(), CUploads::GetTorrentCount(), LongTermAverage(), CPrivateChatFrame::OnChatPriority(), CUploadTransferHTTP::OnCompleted(), CUploadTransferED2K::OnConnected(), CUploadTransferHTTP::OnDropped(), CUploadTransferED2K::OnDropped(), CUploadTipCtrl::OnPaint(), CUploadTransferED2K::OnQueueKick(), CUploadTransferHTTP::OnRead(), CUploadTransferED2K::OnReask(), OnRename(), CUploadTransferBT::OnRequest(), CUploadTransferED2K::OnRequestParts(), CUploadTransferHTTP::OnRun(), CUploadTransferBT::OnRun(), CUploads::OnRun(), CUploadTransferED2K::OnRunEx(), CUploadsWnd::OnTimer(), CUploadTransferBT::OnUninterested(), CUploadsWnd::OnUploadsClear(), CUploadsWnd::OnUploadsClearCompleted(), CUploadsWnd::OnUploadsDisconnect(), CUploadTransferHTTP::OnWrite(), CUploadTransferED2K::OpenFile(), CUploadTransferBT::OpenFile(), CRemote::PageUploads(), CUploadsCtrl::PaintFile(), Promote(), CUploadTransferHTTP::ReadRequest(), RotatingQueue(), CUploadTransferED2K::Send(), CUploadTransferED2K::ServeRequests(), CUploadTransferBT::ServeRequests(), CUploadTransferBT::SetChoke(), CUploadTransferED2K::StartNextRequest(), StartSending(), and CDownloadWithTorrent::UploadExists().

QWORD CUploadTransfer::m_nUploaded
 

Definition at line 72 of file UploadTransfer.h.

Referenced by CalculateRating(), Close(), CUploadTransfer(), CUploadTransferED2K::DispatchNextChunk(), CUploadsWnd::OnTimer(), CUploadTransferHTTP::OnWrite(), Remove(), and CUploadTransferBT::ServeRequests().

DWORD CUploadTransfer::m_nUserRating
 

Definition at line 54 of file UploadTransfer.h.

Referenced by CalculateRating(), CUploadTransfer(), CUploadsCtrl::PaintFile(), and RotatingQueue().

CUploadFile* CUploadTransfer::m_pBaseFile
 

Definition at line 50 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::AddRequest(), AllocateBaseFile(), CUploadTransferED2K::CheckFinishedRequest(), CUploadTransferED2K::Cleanup(), CUploadTransferED2K::Close(), CUploadTransfer(), CFragmentBar::DrawUpload(), CUploads::EnforcePerHostLimit(), CUploadsCtrl::GetNextFile(), CUploadTransferHTTP::OnCompleted(), CUploadTransferHTTP::OnDropped(), CUploadsCtrl::OnLButtonDblClk(), CUploadsCtrl::OnLButtonDown(), CUploadTipCtrl::OnPaint(), CUploadTransferED2K::OnQueueKick(), CUploadTransferED2K::OpenFile(), CUploadTransferBT::OpenFile(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferED2K::ServeRequests(), and CUploadTransferBT::ServeRequests().

CTransferFile* CUploadTransfer::m_pDiskFile
 

Definition at line 51 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::Cleanup(), CUploadTransferBT::Close(), CloseFile(), CUploadTransfer(), CUploadTransferED2K::DispatchNextChunk(), CUploadTransferHTTP::OnCompleted(), OnRename(), CUploadTransferHTTP::OnWrite(), CUploadTransferED2K::OpenFile(), CUploadTransferBT::OpenFile(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferBT::ServeRequests(), and CUploadTransferED2K::StartNextRequest().

MD4 CUploadTransfer::m_pED2K
 

Definition at line 62 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::Close(), CUploadTransferED2K::DispatchNextChunk(), HashesFromURN(), CEDClient::OnQueueRequest(), CUploadTransferED2K::OnRequestParts(), CUploadTransferED2K::OpenFile(), CUploadTransferED2K::Request(), RequestComplete(), RequestPartial(), CUploadTransferHTTP::RequestPreview(), and CUploadTransferHTTP::SendFileHeaders().

CUploadQueue* CUploadTransfer::m_pQueue
 

Definition at line 49 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::CheckRanking(), CUploadTransfer(), CUploadQueue::Dequeue(), CUploadQueues::Enqueue(), CUploadsCtrl::GetFileIterator(), CUploadsCtrl::GetNextFile(), CUploadTipCtrl::OnPaint(), CUploads::OnRun(), CUploadTransferHTTP::OpenFileSendHeaders(), CUploadTransferHTTP::QueueRequest(), CUploadTransferHTTP::ReadRequest(), RotatingQueue(), CUploadTransferED2K::ServeRequests(), CUploadQueues::StealPosition(), CUploadQueue::StealPosition(), and CUploadQueue::~CUploadQueue().

SHA1 CUploadTransfer::m_pSHA1
 

Definition at line 58 of file UploadTransfer.h.

Referenced by AllocateBaseFile(), CUploads::CanUploadFileTo(), HashesFromURN(), CUploadTransferHTTP::OnHeadersComplete(), CUploadTransferHTTP::QueueRequest(), RequestComplete(), RequestPartial(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestSharedFile(), CUploadTransferHTTP::SendFileHeaders(), and CUploadTransferHTTP::SendResponse().

TIGEROOT CUploadTransfer::m_pTiger
 

Definition at line 60 of file UploadTransfer.h.

Referenced by HashesFromURN(), RequestComplete(), RequestPartial(), CUploadTransferHTTP::RequestPreview(), and CUploadTransferHTTP::SendFileHeaders().

CString CUploadTransfer::m_sFileName
 

Definition at line 63 of file UploadTransfer.h.

Referenced by AllocateBaseFile(), CUploadTransferED2K::CheckFinishedRequest(), CUploadTransferED2K::CheckRanking(), ClearRequest(), CUploadQueues::Enqueue(), CUploadTransferHTTP::OnCompleted(), CUploadTransferHTTP::OnHeadersComplete(), OnRename(), CUploadTransferBT::OnRequest(), CUploadsWnd::OnUploadsClear(), CUploadsWnd::OnUploadsDisconnect(), CUploadTransferED2K::OpenFile(), CUploadTransferBT::OpenFile(), CUploadTransferHTTP::OpenFileSendHeaders(), Remove(), CUploadTransferED2K::Request(), RequestComplete(), CUploadTransferHTTP::RequestMetadata(), RequestPartial(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestSharedFile(), CUploadTransferHTTP::RequestTigerTreeDIME(), CUploadTransferHTTP::RequestTigerTreeRaw(), CUploadTransferHTTP::SendResponse(), CUploadTransferBT::ServeRequests(), and CUploadTransferED2K::StartNextRequest().

CString CUploadTransfer::m_sFilePath
 

Definition at line 64 of file UploadTransfer.h.

Referenced by AllocateBaseFile(), ClearRequest(), OnRename(), CUploadTransferED2K::OpenFile(), CUploadTransferBT::OpenFile(), CUploadTransferHTTP::OpenFileSendHeaders(), RequestComplete(), RequestPartial(), and CUploadTransferHTTP::RequestPreview().

CString CUploadTransfer::m_sFileTags
 

Definition at line 68 of file UploadTransfer.h.

Referenced by ClearRequest(), CUploadQueues::Enqueue(), CUploadTransferHTTP::QueueRequest(), RequestComplete(), and RequestPartial().

CString CUploadTransfer::m_sNick
 

Definition at line 53 of file UploadTransfer.h.

Referenced by CUploadTransferED2K::CUploadTransferED2K(), CBTClient::DetermineUserAgent(), CUploadTipCtrl::OnCalcSize(), CUploadTransferHTTP::OnHeaderLine(), CRemote::PageUploads(), and CUploadsCtrl::PaintFile().

DWORD CUploadTransfer::m_tAverageTime [protected]
 

Definition at line 80 of file UploadTransfer.h.

Referenced by CUploadTransfer(), LongTermAverage(), and SetSpeedLimit().

DWORD CUploadTransfer::m_tContent
 

Definition at line 73 of file UploadTransfer.h.

Referenced by GetAverageSpeed(), CUploadTransferED2K::StartNextRequest(), and StartSending().

DWORD CUploadTransfer::m_tRatingTime [protected]
 

Definition at line 83 of file UploadTransfer.h.

Referenced by CalculateRating(), and CUploadTransfer().

DWORD CUploadTransfer::m_tRotateTime [protected]
 

Definition at line 79 of file UploadTransfer.h.

Referenced by CUploadTransfer(), CUploadTransferHTTP::QueueRequest(), RotatingQueue(), and CUploadTransferED2K::ServeRequests().


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