#include <UploadTransferHTTP.h>
Inheritance diagram for CUploadTransferHTTP:
Public Member Functions | |
CUploadTransferHTTP () | |
virtual | ~CUploadTransferHTTP () |
virtual void | AttachTo (CConnection *pConnection) |
BOOL | IsBackwards () const |
Protected Member Functions | |
BOOL | ReadRequest () |
BOOL | RequestSharedFile (CLibraryFile *pFile, CSingleLock &oLibraryLock) |
BOOL | RequestPartialFile (CDownload *pFile) |
BOOL | RequestTigerTreeRaw (CTigerTree *pTigerTree, BOOL bDelete) |
BOOL | RequestTigerTreeDIME (CTigerTree *pTigerTree, int nDepth, CED2K *pHashset, BOOL bDelete) |
BOOL | RequestMetadata (CXMLElement *pMetadata) |
BOOL | RequestPreview (CLibraryFile *pFile, CSingleLock &oLibraryLock) |
BOOL | RequestHostBrowse () |
BOOL | IsNetworkDisabled () |
BOOL | QueueRequest () |
BOOL | OpenFileSendHeaders () |
void | SendDefaultHeaders () |
void | SendFileHeaders () |
void | OnCompleted () |
void | SendResponse (UINT nResourceID, BOOL bFileHeaders=FALSE) |
void | GetNeighbourList (CString &strOutput) |
virtual BOOL | OnRun () |
virtual void | OnDropped (BOOL bError) |
virtual BOOL | OnRead () |
virtual BOOL | OnWrite () |
virtual BOOL | OnHeaderLine (CString &strHeader, CString &strValue) |
virtual BOOL | OnHeadersComplete () |
Protected Attributes | |
CString | m_sRequest |
DWORD | m_tRequest |
BOOL | m_bHead |
BOOL | m_bConnectHdr |
BOOL | m_bKeepAlive |
BOOL | m_bHostBrowse |
BOOL | m_bDeflate |
BOOL | m_bBackwards |
BOOL | m_bRange |
BOOL | m_bQueueMe |
BOOL | m_bNotShareaza |
int | m_nGnutella |
int | m_nReaskMultiplier |
BOOL | m_bTigerTree |
BOOL | m_bMetadata |
CString | m_sLocations |
CString | m_sRanges |
|
Definition at line 69 of file UploadTransferHTTP.cpp. References m_bKeepAlive, m_bNotShareaza, m_nGnutella, and m_nReaskMultiplier. |
|
Definition at line 77 of file UploadTransferHTTP.cpp. |
|
Reimplemented from CTransfer. Definition at line 84 of file UploadTransferHTTP.cpp. References CTransfer::AttachTo(), CSettings::Bandwidth, IDS_UPLOAD_ACCEPTED, CConnection::m_mInput, CConnection::m_mOutput, CUploadTransfer::m_nBandwidth, CUploadTransfer::m_nState, CConnection::m_sAddress, CConnection::m_tConnected, m_tRequest, CShareazaApp::Message(), MSG_DEFAULT, OnRead(), TCPBandwidthMeter::pLimit, CSettings::sBandwidth::Request, Settings, theApp, and upsRequest. |
|
Definition at line 1813 of file UploadTransferHTTP.cpp. References CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), CNeighbour::m_nNodeType, CNeighbour::m_nProtocol, CNeighbour::m_nState, CConnection::m_pHost, CNetwork::m_pSection, CConnection::m_sAddress, CConnection::m_sUserAgent, CConnection::m_tConnected, Neighbours, Network, and nrsConnected. Referenced by SendResponse(). |
|
Definition at line 94 of file UploadTransferHTTP.h. References m_bBackwards. |
|
Definition at line 603 of file UploadTransferHTTP.cpp. References CSettings::Connection, CSettings::sGnutella1::EnableToday, CSettings::sGnutella2::EnableToday, CSettings::Gnutella1, CSettings::Gnutella2, m_nGnutella, CSettings::sConnection::RequireForTransfers, and Settings. Referenced by OnHeadersComplete(). |
|
|
Reimplemented from CConnection. Definition at line 1246 of file UploadTransferHTTP.cpp. References CUploadFile::AddFragment(), CTransfer::Close(), IDS_UPLOAD_DROPPED, m_bBackwards, CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CUploadTransfer::m_nPosition, CUploadTransfer::m_nState, CUploadTransfer::m_pBaseFile, CConnection::m_sAddress, CShareazaApp::Message(), MSG_DEFAULT, NULL, theApp, and upsUploading. |
|
|
|
Reimplemented from CUploadTransfer. Definition at line 102 of file UploadTransferHTTP.cpp. References CUploadTransfer::m_nState, CUploadTransfer::OnRead(), CConnection::ReadHeaders(), ReadRequest(), upsHeaders, upsQueued, and upsRequest. Referenced by AttachTo(). |
|
|
|
|
|
|
|
Definition at line 1270 of file UploadTransferHTTP.cpp. References CBuffer::Add(), IDS_UPLOAD_METADATA_SEND, m_bHead, CConnection::m_pOutput, CConnection::m_sAddress, CUploadTransfer::m_sFileName, CShareazaApp::Message(), MSG_DEFAULT, NULL, CBuffer::Print(), SendDefaultHeaders(), CUploadTransfer::StartSending(), theApp, CXMLElement::ToString(), and upsMetadata. Referenced by OnHeadersComplete(). |
|
|
|
|
|
|
|
|
|
Definition at line 52 of file UploadTransferHTTP.h. Referenced by IsBackwards(), OnDropped(), OnHeaderLine(), OnWrite(), OpenFileSendHeaders(), and ReadRequest(). |
|
Definition at line 48 of file UploadTransferHTTP.h. Referenced by OnHeaderLine(), and ReadRequest(). |
|
Definition at line 51 of file UploadTransferHTTP.h. Referenced by OnHeaderLine(), ReadRequest(), and RequestHostBrowse(). |
|
Definition at line 47 of file UploadTransferHTTP.h. Referenced by OpenFileSendHeaders(), QueueRequest(), ReadRequest(), RequestHostBrowse(), RequestMetadata(), RequestPreview(), RequestTigerTreeDIME(), RequestTigerTreeRaw(), and SendResponse(). |
|
Definition at line 50 of file UploadTransferHTTP.h. Referenced by OnHeaderLine(), OnHeadersComplete(), ReadRequest(), and RequestHostBrowse(). |
|
Definition at line 49 of file UploadTransferHTTP.h. Referenced by CUploadTransferHTTP(), OnHeaderLine(), OnRun(), ReadRequest(), and SendDefaultHeaders(). |
|
Definition at line 60 of file UploadTransferHTTP.h. Referenced by ReadRequest(), RequestPartialFile(), RequestSharedFile(), and SendFileHeaders(). |
|
Definition at line 55 of file UploadTransferHTTP.h. Referenced by CUploadTransferHTTP(), OnHeaderLine(), OnHeadersComplete(), and ReadRequest(). |
|
Definition at line 54 of file UploadTransferHTTP.h. Referenced by OnHeaderLine(), OnHeadersComplete(), QueueRequest(), and ReadRequest(). |
|
Definition at line 53 of file UploadTransferHTTP.h. Referenced by OnHeaderLine(), ReadRequest(), RequestPartialFile(), RequestTigerTreeDIME(), and RequestTigerTreeRaw(). |
|
Definition at line 59 of file UploadTransferHTTP.h. Referenced by ReadRequest(), RequestPartialFile(), RequestSharedFile(), and SendFileHeaders(). |
|
Definition at line 56 of file UploadTransferHTTP.h. Referenced by CUploadTransferHTTP(), IsNetworkDisabled(), OnHeaderLine(), OnHeadersComplete(), and RequestPartialFile(). |
|
Definition at line 57 of file UploadTransferHTTP.h. Referenced by CUploadTransferHTTP(), OnRun(), QueueRequest(), and ReadRequest(). |
|
Definition at line 61 of file UploadTransferHTTP.h. Referenced by OnHeaderLine(), ReadRequest(), RequestPartialFile(), RequestSharedFile(), RequestTigerTreeDIME(), RequestTigerTreeRaw(), and SendFileHeaders(). |
|
Definition at line 62 of file UploadTransferHTTP.h. Referenced by OpenFileSendHeaders(), ReadRequest(), RequestPartialFile(), RequestTigerTreeDIME(), RequestTigerTreeRaw(), and SendFileHeaders(). |
|
Definition at line 45 of file UploadTransferHTTP.h. Referenced by OnHeadersComplete(), ReadRequest(), and RequestPreview(). |
|
Definition at line 46 of file UploadTransferHTTP.h. Referenced by AttachTo(), OnCompleted(), OnRun(), OnWrite(), and ReadRequest(). |