#include <UploadTransferBT.h>
Inheritance diagram for CUploadTransferBT:
Public Member Functions | |
CUploadTransferBT (CBTClient *pClient, CDownload *pDownload) | |
virtual | ~CUploadTransferBT () |
void | SetChoke (BOOL bChoke) |
virtual void | Close (BOOL bMessage=FALSE) |
virtual DWORD | GetMeasuredSpeed () |
virtual BOOL | OnConnected () |
virtual BOOL | OnRun () |
BOOL | OnInterested (CBTPacket *pPacket) |
BOOL | OnUninterested (CBTPacket *pPacket) |
BOOL | OnRequest (CBTPacket *pPacket) |
BOOL | OnCancel (CBTPacket *pPacket) |
Public Attributes | |
CBTClient * | m_pClient |
CDownload * | m_pDownload |
BOOL | m_bInterested |
BOOL | m_bChoked |
int | m_nRandomUnchoke |
DWORD | m_tRandomUnchoke |
Protected Member Functions | |
BOOL | OpenFile () |
BOOL | ServeRequests () |
Private Attributes | |
FF::SimpleFragmentQueue | m_oRequested |
FF::SimpleFragmentQueue | m_oServed |
|
Definition at line 49 of file UploadTransferBT.cpp. References CDownloadWithTorrent::AddUpload(), m_bChoked, m_bInterested, m_nRandomUnchoke, CUploadTransfer::m_nState, m_pClient, m_pDownload, CConnection::m_pHost, CConnection::m_sAddress, CConnection::m_sUserAgent, NULL, CUploadTransfer::RequestPartial(), and upsReady. |
|
Definition at line 69 of file UploadTransferBT.cpp. References m_pClient, m_pDownload, and NULL. |
|
Reimplemented from CUploadTransfer. Definition at line 107 of file UploadTransferBT.cpp. References FF::detail::Queue::clear(), CTransfer::Close(), CBTClient::Close(), CUploadTransfer::CloseFile(), m_oRequested, m_oServed, m_pClient, CUploadTransfer::m_pDiskFile, m_pDownload, CBTClient::m_pUpload, NULL, and CDownloadWithTorrent::RemoveUpload(). Referenced by CBTClient::Close(), and CDownloadWithTorrent::CloseTorrentUploads(). |
|
Reimplemented from CUploadTransfer. Definition at line 130 of file UploadTransferBT.cpp. References CConnection::m_mOutput, m_pClient, CConnection::Measure(), TCPBandwidthMeter::nMeasure, and NULL. |
|
Definition at line 219 of file UploadTransferBT.cpp. References FF::detail::Queue::erase(), CPacket::GetRemaining(), CBTInfo::m_nBlockSize, m_oRequested, m_pDownload, CDownloadWithTorrent::m_pTorrent, and CPacket::ReadLongBE(). Referenced by CBTClient::OnPacket(). |
|
Reimplemented from CConnection. Definition at line 140 of file UploadTransferBT.cpp. References CConnection::m_mOutput, CUploads::m_nTorrentSpeed, m_pClient, TCPBandwidthMeter::pLimit, and Uploads. Referenced by CBTClient::OnOnline(). |
|
Definition at line 158 of file UploadTransferBT.cpp. References m_bInterested. Referenced by CBTClient::OnPacket(). |
|
|
Reimplemented from CUploadTransfer. Definition at line 149 of file UploadTransferBT.cpp. References m_bChoked, CUploadTransfer::m_nState, ServeRequests(), and upsRequest. Referenced by CBTClient::OnRun(). |
|
Definition at line 165 of file UploadTransferBT.cpp. References m_bInterested, CUploadTransfer::m_nState, and upsReady. Referenced by CBTClient::OnPacket(). |
|
Definition at line 237 of file UploadTransferBT.cpp. References CTransfer::Close(), IDS_UPLOAD_CANTOPEN, CUploadTransfer::m_nState, CUploadTransfer::m_pBaseFile, CUploadTransfer::m_pDiskFile, CConnection::m_sAddress, CUploadTransfer::m_sFileName, CUploadTransfer::m_sFilePath, CShareazaApp::Message(), MSG_ERROR, NULL, CTransferFiles::Open(), theApp, TransferFiles, upsRequest, and upsUploading. Referenced by ServeRequests(). |
|
|
Definition at line 78 of file UploadTransferBT.cpp. References BT_PACKET_CHOKE, BT_PACKET_UNCHOKE, FF::detail::Queue::clear(), m_bChoked, CUploadTransfer::m_nState, m_oRequested, m_oServed, m_pClient, CConnection::m_sAddress, CShareazaApp::Message(), CUploadFiles::MoveToHead(), CUploadFiles::MoveToTail(), MSG_DEBUG, CBTPacket::New(), CBTClient::Send(), theApp, UploadFiles, and upsReady. Referenced by CDownloadWithTorrent::ChokeTorrent(). |
|
Definition at line 47 of file UploadTransferBT.h. Referenced by CUploadTransferBT(), OnRequest(), OnRun(), CUploads::OnRun(), CRemote::PageUploads(), CUploadsCtrl::PaintFile(), ServeRequests(), and SetChoke(). |
|
Definition at line 46 of file UploadTransferBT.h. Referenced by CDownloadWithTorrent::ChokeTorrent(), CUploadTransferBT(), OnInterested(), CUploads::OnRun(), OnUninterested(), CRemote::PageUploads(), and CUploadsCtrl::PaintFile(). |
|
Definition at line 48 of file UploadTransferBT.h. Referenced by CDownloadWithTorrent::ChokeTorrent(), and CUploadTransferBT(). |
|
Definition at line 51 of file UploadTransferBT.h. Referenced by Close(), OnCancel(), OnRequest(), ServeRequests(), and SetChoke(). |
|
Definition at line 52 of file UploadTransferBT.h. Referenced by Close(), OnRequest(), ServeRequests(), and SetChoke(). |
|
Definition at line 43 of file UploadTransferBT.h. Referenced by CDownloadWithTorrent::ChokeTorrent(), Close(), CUploadTransferBT(), GetMeasuredSpeed(), OnConnected(), ServeRequests(), SetChoke(), CDownloadWithTorrent::UploadExists(), and ~CUploadTransferBT(). |
|
Definition at line 44 of file UploadTransferBT.h. Referenced by Close(), CUploadTransferBT(), OnCancel(), OnRequest(), ServeRequests(), and ~CUploadTransferBT(). |
|
Definition at line 49 of file UploadTransferBT.h. Referenced by CDownloadWithTorrent::ChokeTorrent(). |