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

CUploadTransferHTTP Class Reference

#include <UploadTransferHTTP.h>

Inheritance diagram for CUploadTransferHTTP:

CUploadTransfer CTransfer CConnection List of all members.

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

Constructor & Destructor Documentation

CUploadTransferHTTP::CUploadTransferHTTP  ) 
 

Definition at line 69 of file UploadTransferHTTP.cpp.

References m_bKeepAlive, m_bNotShareaza, m_nGnutella, and m_nReaskMultiplier.

CUploadTransferHTTP::~CUploadTransferHTTP  )  [virtual]
 

Definition at line 77 of file UploadTransferHTTP.cpp.


Member Function Documentation

void CUploadTransferHTTP::AttachTo CConnection pConnection  )  [virtual]
 

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.

void CUploadTransferHTTP::GetNeighbourList CString &  strOutput  )  [protected]
 

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().

BOOL CUploadTransferHTTP::IsBackwards  )  const [inline]
 

Definition at line 94 of file UploadTransferHTTP.h.

References m_bBackwards.

BOOL CUploadTransferHTTP::IsNetworkDisabled  )  [protected]
 

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().

void CUploadTransferHTTP::OnCompleted  )  [protected]
 

Definition at line 1171 of file UploadTransferHTTP.cpp.

References CUploadFile::AddFragment(), CUploadTransfer::GetAverageSpeed(), IDS_UPLOAD_FINISHED, CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CUploadTransfer::m_nState, CUploadTransfer::m_pBaseFile, CUploadTransfer::m_pDiskFile, CConnection::m_sAddress, CUploadTransfer::m_sFileName, m_tRequest, CShareazaApp::Message(), MSG_DEFAULT, NULL, CTransferFile::Release(), CUploads::SetStable(), theApp, Uploads, and upsRequest.

Referenced by OnWrite().

void CUploadTransferHTTP::OnDropped BOOL  bError  )  [protected, virtual]
 

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.

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

Reimplemented from CTransfer.

Definition at line 208 of file UploadTransferHTTP.cpp.

References _tcsistr(), CSettings::sUploads::AllowBackwards, CUploadTransfer::HashesFromURN(), CSettings::Library, m_bBackwards, m_bConnectHdr, m_bDeflate, m_bHostBrowse, m_bKeepAlive, m_bNotShareaza, m_bQueueMe, m_bRange, m_nGnutella, CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CConnection::m_sAddress, m_sLocations, CUploadTransfer::m_sNick, CShareazaApp::Message(), MSG_DEBUG, NULL, CTransfer::OnHeaderLine(), Settings, SIZE_UNKNOWN, CSettings::sLibrary::SourceMesh, theApp, CSettings::Uploads, and CConnection::URLDecode().

BOOL CUploadTransferHTTP::OnHeadersComplete  )  [protected, virtual]
 

Reimplemented from CConnection.

Definition at line 298 of file UploadTransferHTTP.cpp.

References _tcsistr(), CXMLElement::AddElement(), CSecurity::Ban(), ban2Hours, ban5Mins, banWeek, CUploadQueues::CanUpload(), CXMLElement::Clone(), CSettings::Community, Downloads, CSettings::sRemote::Enable, CSettings::sGnutella1::EnableToday, CUploads::EnforcePerHostLimit(), CDownloads::FindByURN(), CSettings::Gnutella1, CSHA::HashToString(), IDR_HTML_ABOUT, IDR_HTML_BROWSER, IDR_HTML_DISABLED, IDR_HTML_FILENOTFOUND, IDS_UPLOAD_ABOUT, IDS_UPLOAD_BROWSE_DENIED, IDS_UPLOAD_BROWSER, IDS_UPLOAD_DISABLED, IDS_UPLOAD_FILENOTFOUND, CConnection::IsAgentBlocked(), IsNetworkDisabled(), CDownload::IsShared(), CDownload::IsStarted(), Library, LibraryMaps, CLibrary::LookupFile(), CLibraryMaps::LookupFileByName(), CLibraryMaps::LookupFileByURN(), m_bHostBrowse, m_bNotShareaza, m_bQueueMe, CUploadTransfer::m_bSHA1, CUploadTransfer::m_nFileSize, m_nGnutella, CConnection::m_pHost, CConnection::m_pInput, CLibrary::m_pSection, CUploadTransfer::m_pSHA1, CConnection::m_sAddress, CUploadTransfer::m_sFileName, CLibraryFile::m_sName, m_sRequest, CConnection::m_sUserAgent, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, NULL, CBuffer::Prefix(), PROTOCOL_HTTP, CSettings::Remote, CUploadTransfer::Remove(), RequestHostBrowse(), RequestMetadata(), RequestPartialFile(), RequestPreview(), RequestSharedFile(), RequestTigerTreeDIME(), RequestTigerTreeRaw(), Security, SendResponse(), CSettings::sCommunity::ServeFiles, CSettings::sCommunity::ServeProfile, Settings, CSettings::sUploads::ShareMetadata, CSettings::sUploads::SharePreviews, CSettings::sUploads::ShareTiger, CConnection::StartsWith(), theApp, UploadQueues, CSettings::Uploads, and Uploads.

BOOL CUploadTransferHTTP::OnRead  )  [protected, virtual]
 

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().

BOOL CUploadTransferHTTP::OnRun  )  [protected, virtual]
 

Reimplemented from CUploadTransfer.

Definition at line 1189 of file UploadTransferHTTP.cpp.

References CTransfer::Close(), CSettings::Connection, IDS_UPLOAD_DROPPED, IDS_UPLOAD_REQUEST_TIMEOUT, IDS_UPLOAD_TRAFFIC_TIMEOUT, m_bKeepAlive, CConnection::m_mOutput, CBuffer::m_nLength, m_nReaskMultiplier, CUploadTransfer::m_nState, CConnection::m_pOutput, m_tRequest, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, CUploadTransfer::OnRun(), CSettings::sUploads::QueuePollMax, Settings, theApp, CSettings::sConnection::TimeoutHandshake, CSettings::sConnection::TimeoutTraffic, TCPBandwidthMeter::tLast, CSettings::Uploads, upsBrowse, upsHeaders, upsMetadata, upsPreQueue, upsPreview, upsQueued, upsRequest, upsResponse, upsTigerTree, and upsUploading.

BOOL CUploadTransferHTTP::OnWrite  )  [protected, virtual]
 

Reimplemented from CUploadTransfer.

Definition at line 1126 of file UploadTransferHTTP.cpp.

References CBuffer::Add(), CBuffer::AddReversed(), CStatistics::Current, m_bBackwards, CTransfers::m_nBuffer, CUploadTransfer::m_nFileBase, CUploadTransfer::m_nLength, CBuffer::m_nLength, CUploadTransfer::m_nOffset, CUploadTransfer::m_nPosition, CUploadTransfer::m_nState, CUploadTransfer::m_nUploaded, CTransfers::m_pBuffer, CUploadTransfer::m_pDiskFile, CConnection::m_pOutput, m_tRequest, NULL, OnCompleted(), CUploadTransfer::OnWrite(), CTransferFile::Read(), Statistics, Transfers, upsPreQueue, upsQueued, upsRequest, upsResponse, and upsUploading.

Referenced by OpenFileSendHeaders().

BOOL CUploadTransferHTTP::OpenFileSendHeaders  )  [protected]
 

Definition at line 1019 of file UploadTransferHTTP.cpp.

References CUploadQueues::Check(), IDR_HTML_FILENOTFOUND, IDS_UPLOAD_CANTOPEN, IDS_UPLOAD_CONTENT, IDS_UPLOAD_FILE, IDS_UPLOAD_HEADERS, IDS_UPLOAD_PARTIAL_CONTENT, Library, LibraryMaps, CShellIcons::Lookup(), CLibraryMaps::LookupFileByPath(), m_bBackwards, CUploadTransfer::m_bED2K, m_bHead, CUploadQueue::m_bRotate, CUploadTransfer::m_bSHA1, CUploadTransfer::m_bTiger, CUploadTransfer::m_nFileSize, CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CUploadFile::m_nRequests, CUploadQueue::m_nRotateChunk, CUploadTransfer::m_pBaseFile, CUploadTransfer::m_pDiskFile, CConnection::m_pOutput, CUploadTransfer::m_pQueue, CLibrary::m_pSection, CUploadQueues::m_pSection, CConnection::m_sAddress, CUploadTransfer::m_sFileName, CUploadTransfer::m_sFilePath, m_sRanges, CConnection::m_sUserAgent, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, MSG_SYSTEM, NULL, OnWrite(), CTransferFiles::Open(), CBuffer::Print(), CTransferFile::Release(), CSettings::sUploads::RotateChunkLimit, SendDefaultHeaders(), SendFileHeaders(), SendResponse(), Settings, ShellIcons, CUploadTransfer::StartSending(), theApp, TransferFiles, UploadQueues, CSettings::Uploads, upsResponse, and upsUploading.

Referenced by QueueRequest().

BOOL CUploadTransferHTTP::QueueRequest  )  [protected]
 

Definition at line 760 of file UploadTransferHTTP.cpp.

References CUploadTransfer::AllocateBaseFile(), CUploadQueue::CanAccept(), CUploads::CanUploadFileTo(), CUploadQueues::Check(), CUploadQueues::Dequeue(), CUploadQueues::Enqueue(), CUploadQueues::GetPosition(), CUploadQueue::GetQueuedCount(), CUploadQueue::GetTransferCount(), IDR_HTML_BUSY, IDS_UPLOAD_BUSY_HOST, IDS_UPLOAD_BUSY_OLD, IDS_UPLOAD_BUSY_QUEUE, IDS_UPLOAD_QUEUED, CUploadTransfer::m_bFilePartial, m_bHead, m_bQueueMe, CUploadTransfer::m_bSHA1, CUploadTransfer::m_bStopTransfer, CUploadTransfer::m_nFileSize, CUploadTransfer::m_nProtocol, m_nReaskMultiplier, CConnection::m_pHost, CConnection::m_pOutput, CUploadTransfer::m_pQueue, CUploadQueues::m_pSection, CUploadTransfer::m_pSHA1, CConnection::m_sAddress, CUploadTransfer::m_sFileTags, CUploadQueue::m_sName, CConnection::m_sUserAgent, CUploadTransfer::m_tRotateTime, CShareazaApp::Message(), MSG_DEBUG, MSG_DEFAULT, MSG_ERROR, NULL, OpenFileSendHeaders(), CBuffer::Print(), CSettings::sUploads::QueuePollMax, CSettings::sUploads::QueuePollMin, Replace(), SendDefaultHeaders(), SendFileHeaders(), SendResponse(), Settings, CUploadTransfer::StartSending(), theApp, UploadQueues, CSettings::Uploads, Uploads, and upsPreQueue.

Referenced by RequestPartialFile(), and RequestSharedFile().

BOOL CUploadTransferHTTP::ReadRequest  )  [protected]
 

Definition at line 124 of file UploadTransferHTTP.cpp.

References CUploadTransfer::ClearRequest(), CTransfer::Close(), CUploadQueues::Dequeue(), IDS_UPLOAD_BUSY_FAST, IDS_UPLOAD_NOHTTP, m_bBackwards, m_bConnectHdr, m_bDeflate, m_bHead, m_bHostBrowse, m_bKeepAlive, m_bMetadata, m_bNotShareaza, m_bQueueMe, m_bRange, m_bTigerTree, m_nReaskMultiplier, CUploadTransfer::m_nState, CConnection::m_pInput, CUploadTransfer::m_pQueue, CConnection::m_sAddress, m_sLocations, m_sRanges, m_sRequest, m_tRequest, CShareazaApp::Message(), MSG_DEBUG, MSG_ERROR, NULL, CSettings::sUploads::QueuePollMin, CBuffer::ReadLine(), Settings, theApp, UploadQueues, CSettings::Uploads, upsHeaders, upsQueued, and CConnection::URLDecode().

Referenced by OnRead().

BOOL CUploadTransferHTTP::RequestHostBrowse  )  [protected]
 

Definition at line 1647 of file UploadTransferHTTP.cpp.

References CBuffer::AddBuffer(), CSettings::Community, CGProfile::CreateAvatar(), CBuffer::Deflate(), CLocalSearch::Execute(), G2_PACKET_PROFILE_DELIVERY, CUploads::GetCount(), CG2Packet::GetStringLen(), CGProfile::GetXML(), IDS_UPLOAD_BROWSE, IDS_UPLOAD_BROWSE_BUSY, CGProfile::IsValid(), m_bDeflate, m_bHead, m_bHostBrowse, CBuffer::m_nLength, CConnection::m_pOutput, CConnection::m_sUserAgent, CShareazaApp::Message(), MSG_ERROR, MSG_SYSTEM, MyProfile, CG2Packet::New(), NULL, CConnection::OnWrite(), CSettings::sUploads::PreviewTransfers, CBuffer::Print(), PROTOCOL_G1, PROTOCOL_G2, CPacket::Release(), SendDefaultHeaders(), CSettings::sCommunity::ServeFiles, CSettings::sCommunity::ServeProfile, Settings, CUploadTransfer::StartSending(), theApp, CG2Packet::ToBuffer(), CSettings::Uploads, Uploads, upsBrowse, upsResponse, CG2Packet::WritePacket(), CG2Packet::WriteString(), and CLocalSearch::WriteVirtualTree().

Referenced by OnHeadersComplete().

BOOL CUploadTransferHTTP::RequestMetadata CXMLElement pMetadata  )  [protected]
 

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().

BOOL CUploadTransferHTTP::RequestPartialFile CDownload pFile  )  [protected]
 

Definition at line 681 of file UploadTransferHTTP.cpp.

References CDownloadWithSources::AddSourceURLs(), CDownloadWithFile::ClipUploadRange(), CDownloadWithTiger::GetAvailableRanges(), CDownloadWithFile::GetRandomRange(), CDownloadWithSources::GetSourceURLs(), CDownloadWithTiger::GetTigerTree(), CDownloadWithTransfers::GetTransferCount(), IDR_HTML_FILENOTFOUND, IDR_HTML_HASHMISMATCH, IDS_UPLOAD_BAD_RANGE, IDS_UPLOAD_FILENOTFOUND, IDS_UPLOAD_HASH_MISMATCH, CDownload::IsMoving(), CDownload::IsStarted(), CSettings::Library, m_bMetadata, m_bRange, CUploadTransfer::m_bTiger, m_bTigerTree, CUploadTransfer::m_nFileBase, CUploadTransfer::m_nFileSize, m_nGnutella, CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CConnection::m_pOutput, CTransfer::m_pSourcesSent, CDownloadWithSources::m_pXML, CConnection::m_sAddress, CUploadTransfer::m_sFileName, m_sLocations, m_sRanges, CDownload::m_tCompleted, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, NULL, CBuffer::Print(), PROTOCOL_G1, PROTOCOL_HTTP, QueueRequest(), CUploadTransfer::RequestPartial(), SendDefaultHeaders(), SendFileHeaders(), SendResponse(), Settings, SIZE_UNKNOWN, CSettings::sLibrary::SourceMesh, CUploadTransfer::StartSending(), theApp, and upsResponse.

Referenced by OnHeadersComplete().

BOOL CUploadTransferHTTP::RequestPreview CLibraryFile pFile,
CSingleLock &  oLibraryLock
[protected]
 

Definition at line 1507 of file UploadTransferHTTP.cpp.

References _tcsistr(), CBuffer::Add(), CImageServices::Cleanup(), CSettings::sUploads::DynamicPreviews, CImageFile::EnsureRGB(), CUploads::GetCount(), CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), IDR_HTML_FILENOTFOUND, IDS_UPLOAD_PREVIEW_BUSY, IDS_UPLOAD_PREVIEW_DYNAMIC, IDS_UPLOAD_PREVIEW_EMPTY, IDS_UPLOAD_PREVIEW_SEND, Library, CThumbCache::Load(), CImageFile::LoadFromFile(), CLibrary::LookupFile(), CUploadTransfer::m_bED2K, m_bHead, CUploadTransfer::m_bSHA1, CUploadTransfer::m_bTiger, CImageFile::m_nHeight, CImageFile::m_nWidth, CUploadTransfer::m_pED2K, CConnection::m_pOutput, CLibrary::m_pSection, CUploadTransfer::m_pSHA1, CUploadTransfer::m_pTiger, CConnection::m_sAddress, CUploadTransfer::m_sFileName, CUploadTransfer::m_sFilePath, m_sRequest, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, NULL, CSettings::sUploads::PreviewQuality, CSettings::sUploads::PreviewTransfers, CBuffer::Print(), CImageFile::Resample(), CImageFile::SaveToMemory(), SendDefaultHeaders(), SendResponse(), Settings, CUploadTransfer::StartSending(), CThumbCache::Store(), theApp, CLibrary::Update(), CSettings::Uploads, Uploads, upsPreview, and upsResponse.

Referenced by OnHeadersComplete().

BOOL CUploadTransferHTTP::RequestSharedFile CLibraryFile pFile,
CSingleLock &  oLibraryLock
[protected]
 

Definition at line 627 of file UploadTransferHTTP.cpp.

References CLibraryFile::AddAlternateSources(), CUploadQueues::CanUpload(), CLibraryFile::GetAlternateSources(), CSHA::HashToString(), IDR_HTML_BADRANGE, IDR_HTML_FILENOTFOUND, IDR_HTML_HASHMISMATCH, IDS_UPLOAD_BAD_RANGE, IDS_UPLOAD_FILENOTFOUND, IDS_UPLOAD_HASH_MISMATCH, CSettings::Library, CUploadTransfer::m_bED2K, m_bMetadata, CLibraryFile::m_bMetadataAuto, CUploadTransfer::m_bSHA1, CUploadTransfer::m_bTiger, m_bTigerTree, CUploadTransfer::m_nFileSize, CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CLibraryFile::m_nVirtualSize, CLibraryFile::m_pMetadata, CUploadTransfer::m_pSHA1, CTransfer::m_pSourcesSent, CConnection::m_sAddress, CUploadTransfer::m_sFileName, m_sLocations, CShareazaApp::Message(), MSG_ERROR, NULL, PROTOCOL_HTTP, QueueRequest(), CUploadTransfer::RequestComplete(), SendResponse(), Settings, SIZE_UNKNOWN, CSettings::sLibrary::SourceMesh, theApp, and UploadQueues.

Referenced by OnHeadersComplete().

BOOL CUploadTransferHTTP::RequestTigerTreeDIME CTigerTree pTigerTree,
int  nDepth,
CED2K pHashset,
BOOL  bDelete
[protected]
 

Definition at line 1381 of file UploadTransferHTTP.cpp.

References CBuffer::Add(), CUploadTransfer::ClearHashes(), CNetwork::CreateID(), IDR_HTML_BADRANGE, IDR_HTML_FILENOTFOUND, IDS_UPLOAD_BAD_RANGE, IDS_UPLOAD_FILENOTFOUND, IDS_UPLOAD_TIGER_SEND, m_bHead, m_bRange, CUploadTransfer::m_nFileSize, CUploadTransfer::m_nLength, CBuffer::m_nLength, CUploadTransfer::m_nOffset, CBuffer::m_pBuffer, CConnection::m_pOutput, CConnection::m_sAddress, CUploadTransfer::m_sFileName, m_sLocations, m_sRanges, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, Network, NULL, CBuffer::Print(), SendDefaultHeaders(), SendResponse(), SIZE_UNKNOWN, CUploadTransfer::StartSending(), theApp, upsTigerTree, and CBuffer::WriteDIME().

Referenced by OnHeadersComplete().

BOOL CUploadTransferHTTP::RequestTigerTreeRaw CTigerTree pTigerTree,
BOOL  bDelete
[protected]
 

Definition at line 1303 of file UploadTransferHTTP.cpp.

References CBuffer::Add(), CUploadTransfer::ClearHashes(), IDR_HTML_BADRANGE, IDR_HTML_FILENOTFOUND, IDS_UPLOAD_BAD_RANGE, IDS_UPLOAD_FILENOTFOUND, IDS_UPLOAD_TIGER_SEND, m_bHead, m_bRange, CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CConnection::m_pOutput, CConnection::m_sAddress, CUploadTransfer::m_sFileName, m_sLocations, m_sRanges, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, NULL, CBuffer::Print(), SendDefaultHeaders(), SendResponse(), SIZE_UNKNOWN, CUploadTransfer::StartSending(), theApp, and upsTigerTree.

Referenced by OnHeadersComplete().

void CUploadTransferHTTP::SendDefaultHeaders  )  [protected]
 

Definition at line 907 of file UploadTransferHTTP.cpp.

References CGProfile::GetNick(), CConnection::m_bInitiated, m_bKeepAlive, CUploadTransfer::m_nRequests, CConnection::m_pHost, CConnection::m_pOutput, CSettings::sUploads::MaxPerHost, MyProfile, CBuffer::Print(), CConnection::SendMyAddress(), Settings, CSettings::SmartAgent(), CSettings::Uploads, and CConnection::URLEncode().

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

void CUploadTransferHTTP::SendFileHeaders  )  [protected]
 

Definition at line 954 of file UploadTransferHTTP.cpp.

References CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), CUploadTransfer::m_bED2K, m_bMetadata, CUploadTransfer::m_bSHA1, CUploadTransfer::m_bTiger, m_bTigerTree, CUploadTransfer::m_pED2K, CConnection::m_pOutput, CUploadTransfer::m_pSHA1, CUploadTransfer::m_pTiger, m_sLocations, m_sRanges, CBuffer::Print(), Settings, CSettings::sUploads::ShareTiger, and CSettings::Uploads.

Referenced by OpenFileSendHeaders(), QueueRequest(), RequestPartialFile(), and SendResponse().

void CUploadTransferHTTP::SendResponse UINT  nResourceID,
BOOL  bFileHeaders = FALSE
[protected]
 

Definition at line 1733 of file UploadTransferHTTP.cpp.

References CBuffer::Add(), GetNeighbourList(), CSHA::HashToString(), CNetwork::IsListening(), m_bHead, CNetwork::m_pHost, CConnection::m_pOutput, CUploadTransfer::m_pSHA1, CUploadTransfer::m_sFileName, CShareazaApp::m_sVersion, Network, NULL, CBuffer::Print(), SendDefaultHeaders(), SendFileHeaders(), CUploadTransfer::StartSending(), theApp, and upsResponse.

Referenced by OnHeadersComplete(), OpenFileSendHeaders(), QueueRequest(), RequestPartialFile(), RequestPreview(), RequestSharedFile(), RequestTigerTreeDIME(), and RequestTigerTreeRaw().


Member Data Documentation

BOOL CUploadTransferHTTP::m_bBackwards [protected]
 

Definition at line 52 of file UploadTransferHTTP.h.

Referenced by IsBackwards(), OnDropped(), OnHeaderLine(), OnWrite(), OpenFileSendHeaders(), and ReadRequest().

BOOL CUploadTransferHTTP::m_bConnectHdr [protected]
 

Definition at line 48 of file UploadTransferHTTP.h.

Referenced by OnHeaderLine(), and ReadRequest().

BOOL CUploadTransferHTTP::m_bDeflate [protected]
 

Definition at line 51 of file UploadTransferHTTP.h.

Referenced by OnHeaderLine(), ReadRequest(), and RequestHostBrowse().

BOOL CUploadTransferHTTP::m_bHead [protected]
 

Definition at line 47 of file UploadTransferHTTP.h.

Referenced by OpenFileSendHeaders(), QueueRequest(), ReadRequest(), RequestHostBrowse(), RequestMetadata(), RequestPreview(), RequestTigerTreeDIME(), RequestTigerTreeRaw(), and SendResponse().

BOOL CUploadTransferHTTP::m_bHostBrowse [protected]
 

Definition at line 50 of file UploadTransferHTTP.h.

Referenced by OnHeaderLine(), OnHeadersComplete(), ReadRequest(), and RequestHostBrowse().

BOOL CUploadTransferHTTP::m_bKeepAlive [protected]
 

Definition at line 49 of file UploadTransferHTTP.h.

Referenced by CUploadTransferHTTP(), OnHeaderLine(), OnRun(), ReadRequest(), and SendDefaultHeaders().

BOOL CUploadTransferHTTP::m_bMetadata [protected]
 

Definition at line 60 of file UploadTransferHTTP.h.

Referenced by ReadRequest(), RequestPartialFile(), RequestSharedFile(), and SendFileHeaders().

BOOL CUploadTransferHTTP::m_bNotShareaza [protected]
 

Definition at line 55 of file UploadTransferHTTP.h.

Referenced by CUploadTransferHTTP(), OnHeaderLine(), OnHeadersComplete(), and ReadRequest().

BOOL CUploadTransferHTTP::m_bQueueMe [protected]
 

Definition at line 54 of file UploadTransferHTTP.h.

Referenced by OnHeaderLine(), OnHeadersComplete(), QueueRequest(), and ReadRequest().

BOOL CUploadTransferHTTP::m_bRange [protected]
 

Definition at line 53 of file UploadTransferHTTP.h.

Referenced by OnHeaderLine(), ReadRequest(), RequestPartialFile(), RequestTigerTreeDIME(), and RequestTigerTreeRaw().

BOOL CUploadTransferHTTP::m_bTigerTree [protected]
 

Definition at line 59 of file UploadTransferHTTP.h.

Referenced by ReadRequest(), RequestPartialFile(), RequestSharedFile(), and SendFileHeaders().

int CUploadTransferHTTP::m_nGnutella [protected]
 

Definition at line 56 of file UploadTransferHTTP.h.

Referenced by CUploadTransferHTTP(), IsNetworkDisabled(), OnHeaderLine(), OnHeadersComplete(), and RequestPartialFile().

int CUploadTransferHTTP::m_nReaskMultiplier [protected]
 

Definition at line 57 of file UploadTransferHTTP.h.

Referenced by CUploadTransferHTTP(), OnRun(), QueueRequest(), and ReadRequest().

CString CUploadTransferHTTP::m_sLocations [protected]
 

Definition at line 61 of file UploadTransferHTTP.h.

Referenced by OnHeaderLine(), ReadRequest(), RequestPartialFile(), RequestSharedFile(), RequestTigerTreeDIME(), RequestTigerTreeRaw(), and SendFileHeaders().

CString CUploadTransferHTTP::m_sRanges [protected]
 

Definition at line 62 of file UploadTransferHTTP.h.

Referenced by OpenFileSendHeaders(), ReadRequest(), RequestPartialFile(), RequestTigerTreeDIME(), RequestTigerTreeRaw(), and SendFileHeaders().

CString CUploadTransferHTTP::m_sRequest [protected]
 

Definition at line 45 of file UploadTransferHTTP.h.

Referenced by OnHeadersComplete(), ReadRequest(), and RequestPreview().

DWORD CUploadTransferHTTP::m_tRequest [protected]
 

Definition at line 46 of file UploadTransferHTTP.h.

Referenced by AttachTo(), OnCompleted(), OnRun(), OnWrite(), and ReadRequest().


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