#include <UploadTransferED2K.h>
Inheritance diagram for CUploadTransferED2K:
Public Member Functions | |
CUploadTransferED2K (CEDClient *pClient) | |
virtual | ~CUploadTransferED2K () |
BOOL | Request (MD4 *pMD4) |
virtual void | Close (BOOL bMessage=FALSE) |
virtual BOOL | OnRun () |
virtual BOOL | OnConnected () |
virtual void | OnDropped (BOOL bError) |
virtual void | OnQueueKick () |
virtual DWORD | GetMeasuredSpeed () |
BOOL | OnRunEx (DWORD tNow) |
BOOL | OnQueueRelease (CEDPacket *pPacket) |
BOOL | OnRequestParts (CEDPacket *pPacket) |
BOOL | OnReask () |
Public Attributes | |
CEDClient * | m_pClient |
DWORD | m_tRequest |
int | m_nRanking |
DWORD | m_tRankingSent |
DWORD | m_tRankingCheck |
DWORD | m_tLastRun |
Protected Member Functions | |
void | Cleanup (BOOL bDequeue=TRUE) |
void | Send (CEDPacket *pPacket, BOOL bRelease=TRUE) |
BOOL | CheckRanking () |
void | AddRequest (QWORD nOffset, QWORD nLength) |
BOOL | ServeRequests () |
BOOL | OpenFile () |
BOOL | StartNextRequest () |
BOOL | DispatchNextChunk () |
BOOL | CheckFinishedRequest () |
Private Attributes | |
FF::SimpleFragmentQueue | m_oRequested |
FF::SimpleFragmentQueue | m_oServed |
|
|
Definition at line 73 of file UploadTransferED2K.cpp. |
|
Definition at line 424 of file UploadTransferED2K.cpp. References FF::detail::Queue::begin(), FF::detail::Queue::end(), m_oRequested, CUploadTransfer::m_pBaseFile, NULL, and FF::detail::Queue::pushBack(). Referenced by OnRequestParts(). |
|
|
|
Definition at line 388 of file UploadTransferED2K.cpp. References FF::detail::Queue::clear(), CUploadTransfer::ClearRequest(), CUploadTransfer::CloseFile(), CUploadQueues::Dequeue(), CUploadTransfer::m_nOffset, CUploadTransfer::m_nPosition, CUploadTransfer::m_nState, m_oRequested, m_oServed, CUploadTransfer::m_pBaseFile, CUploadTransfer::m_pDiskFile, NULL, UploadQueues, upsReady, and upsUploading. Referenced by CheckRanking(), Close(), OnQueueKick(), OnQueueRelease(), OpenFile(), Request(), ServeRequests(), and StartNextRequest(). |
|
Reimplemented from CUploadTransfer. Definition at line 144 of file UploadTransferED2K.cpp. References Cleanup(), CTransfer::Close(), ED2K_C2C_FILENOTFOUND, ED2K_C2C_FINISHUPLOAD, CEDClient::IsOnline(), CUploadTransfer::m_nState, CUploadTransfer::m_pBaseFile, m_pClient, CUploadTransfer::m_pED2K, CEDPacket::New(), NULL, CEDClient::OnUploadClose(), Send(), upsNull, upsQueued, upsUploading, and CPacket::Write(). Referenced by CEDClient::DetachUpload(). |
|
|
Reimplemented from CUploadTransfer. Definition at line 311 of file UploadTransferED2K.cpp. References CConnection::m_mOutput, m_pClient, CConnection::Measure(), TCPBandwidthMeter::nMeasure, and NULL. |
|
Reimplemented from CConnection. Definition at line 250 of file UploadTransferED2K.cpp. References CheckRanking(), CConnection::m_mOutput, CUploadTransfer::m_nBandwidth, m_nRanking, CUploadTransfer::m_nState, m_pClient, m_tRequest, TCPBandwidthMeter::pLimit, and upsConnecting. Referenced by CEDClient::OnLoggedIn(). |
|
Reimplemented from CConnection. Definition at line 265 of file UploadTransferED2K.cpp. References FF::detail::Queue::clear(), CTransfer::Close(), IDS_UPLOAD_DROPPED, IDS_UPLOAD_QUEUE_DROP, CUploadTransfer::m_nState, m_oRequested, m_oServed, CConnection::m_sAddress, m_tRequest, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, theApp, and upsQueued. Referenced by CEDClient::NotifyDropped(). |
|
Reimplemented from CUploadTransfer. Definition at line 287 of file UploadTransferED2K.cpp. References CheckRanking(), Cleanup(), ED2K_C2C_FINISHUPLOAD, CUploadQueues::GetPosition(), CEDClient::IsOnline(), m_nRanking, CUploadTransfer::m_nState, CUploadTransfer::m_pBaseFile, m_pClient, CEDPacket::New(), NULL, Send(), UploadQueues, upsRequest, and upsUploading. |
|
Definition at line 321 of file UploadTransferED2K.cpp. References Cleanup(), and CTransfer::Close(). Referenced by CEDClient::OnPacket(). |
|
Definition at line 763 of file UploadTransferED2K.cpp. References Datagrams, ED2K_C2C_UDP_REASKACK, ED2K_PROTOCOL_EMULE, CUploadQueues::GetPosition(), CUploadTransfer::m_nState, CEDClient::m_nUDP, m_pClient, CConnection::m_pHost, m_tRequest, CEDPacket::New(), CDatagrams::Send(), UploadQueues, upsQueued, and CPacket::WriteShortLE(). Referenced by CEDClient::OnUdpReask(). |
|
Definition at line 331 of file UploadTransferED2K.cpp. References AddRequest(), CTransfer::Close(), CPacket::GetRemaining(), IDS_ED2K_CLIENT_BAD_PACKET, CUploadTransfer::m_nFileSize, CUploadTransfer::m_nState, CEDPacket::m_nType, CUploadTransfer::m_pED2K, CConnection::m_sAddress, CShareazaApp::Message(), MSG_ERROR, CPacket::Read(), Request(), ServeRequests(), theApp, upsQueued, upsRequest, and upsUploading. Referenced by CEDClient::OnPacket(). |
|
Reimplemented from CUploadTransfer. Definition at line 177 of file UploadTransferED2K.cpp. References OnRunEx(). |
|
|
|
|
Definition at line 414 of file UploadTransferED2K.cpp. References CUploadTransfer::m_nState, m_pClient, NULL, CEDClient::Send(), and upsNull. Referenced by CheckRanking(), Close(), DispatchNextChunk(), OnQueueKick(), OpenFile(), Request(), ServeRequests(), and StartNextRequest(). |
|
|
|
Definition at line 44 of file UploadTransferED2K.h. Referenced by CheckRanking(), OnConnected(), OnQueueKick(), OnRunEx(), Request(), and ServeRequests(). |
|
Definition at line 49 of file UploadTransferED2K.h. Referenced by AddRequest(), Cleanup(), OnDropped(), and StartNextRequest(). |
|
Definition at line 50 of file UploadTransferED2K.h. Referenced by CheckFinishedRequest(), Cleanup(), OnDropped(), and StartNextRequest(). |
|
Definition at line 42 of file UploadTransferED2K.h. Referenced by CheckRanking(), Close(), CUploadTransferED2K(), DispatchNextChunk(), GetMeasuredSpeed(), CEDClient::Merge(), OnConnected(), OnQueueKick(), OnReask(), OnRunEx(), Request(), Send(), ServeRequests(), StartNextRequest(), and ~CUploadTransferED2K(). |
|
Definition at line 47 of file UploadTransferED2K.h. Referenced by CUploadTransferED2K(), and OnRunEx(). |
|
Definition at line 46 of file UploadTransferED2K.h. Referenced by CheckRanking(), CUploadTransferED2K(), and OnRunEx(). |
|
Definition at line 45 of file UploadTransferED2K.h. Referenced by CheckRanking(), and CUploadTransferED2K(). |
|
Definition at line 43 of file UploadTransferED2K.h. Referenced by CheckRanking(), CUploadTransferED2K(), OnConnected(), OnDropped(), OnReask(), OnRunEx(), and ServeRequests(). |