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

CBTTrackerRequest Class Reference

#include <BTTrackerRequest.h>

List of all members.

Public Member Functions

 CBTTrackerRequest (CDownload *pDownload, LPCTSTR pszVerb=NULL, BOOL bProcess=TRUE, WORD nNumWant=0xFFFF)
virtual ~CBTTrackerRequest ()
virtual int Run ()
virtual BOOL InitInstance ()

Static Public Member Functions

static void SendStarted (CDownloadBase *pDownload, WORD nNumWant=0xFFFF)
static void SendUpdate (CDownloadBase *pDownload, WORD nNumWant=0xFFFF)
static void SendCompleted (CDownloadBase *pDownload)
static void SendStopped (CDownloadBase *pDownload)
static CString Escape (SHA1 *pSHA1)

Public Attributes

CDownloadm_pDownload
BOOL m_bProcess
CHttpRequest m_pRequest

Protected Member Functions

void Process (BOOL bRequest)
BOOL Process (CBENode *pRoot)


Constructor & Destructor Documentation

CBTTrackerRequest::CBTTrackerRequest CDownload pDownload,
LPCTSTR  pszVerb = NULL,
BOOL  bProcess = TRUE,
WORD  nNumWant = 0xFFFF
 

Definition at line 49 of file BTTrackerRequest.cpp.

References CBTClients::Add(), CSettings::BitTorrent, BTClients, CSettings::Connection, CSettings::sConnection::InPort, CNetwork::m_pHost, Network, NULL, Settings, CSettings::SmartAgent(), CSettings::sBitTorrent::StandardPeerID, and CSettings::sBitTorrent::TrackerKey.

Referenced by SendCompleted(), SendStarted(), SendStopped(), and SendUpdate().

CBTTrackerRequest::~CBTTrackerRequest  )  [virtual]
 

Definition at line 123 of file BTTrackerRequest.cpp.

References BTClients, and CBTClients::Remove().


Member Function Documentation

CString CBTTrackerRequest::Escape SHA1 pSHA1  )  [static]
 

Definition at line 158 of file BTTrackerRequest.cpp.

References SHA1::n.

BOOL CBTTrackerRequest::InitInstance  )  [virtual]
 

Definition at line 192 of file BTTrackerRequest.cpp.

BOOL CBTTrackerRequest::Process CBENode pRoot  )  [protected]
 

Definition at line 256 of file BTTrackerRequest.cpp.

References CDownloadWithSources::AddSourceBT(), CBENode::beDict, CBENode::beInt, CBENode::beList, CBENode::beString, CSettings::Connection, CONNECTION_FIREWALLED, CSettings::sConnection::FirewallStatus, CDownloadWithFile::GetDisplayName(), CBENode::GetInt(), CBENode::GetNode(), CBENode::GetString(), IDS_BT_TRACK_ERROR, IDS_BT_TRACK_PARSE_ERROR, IDS_BT_TRACK_SUCCESS, CDownload::IsMoving(), CBENode::IsType(), LoadString(), CDownloadWithTorrent::m_bTorrentStarted, CBENode::m_nValue, m_pDownload, CBENode::m_pValue, CDownloadWithTorrent::m_tTorrentTracker, CShareazaApp::Message(), MSG_DEBUG, MSG_DEFAULT, MSG_ERROR, Network, NULL, CDownloadWithTorrent::OnTrackerEvent(), CNetwork::Resolve(), Settings, and theApp.

void CBTTrackerRequest::Process BOOL  bRequest  )  [protected]
 

Definition at line 211 of file BTTrackerRequest.cpp.

References CBENode::beDict, CBENode::beString, CDownloads::Check(), CBENode::Decode(), Downloads, CDownloadWithFile::GetDisplayName(), CHttpRequest::GetResponseBuffer(), CBENode::GetString(), IDS_BT_TRACK_ERROR, IDS_BT_TRACK_PARSE_ERROR, CHttpRequest::InflateResponse(), CBENode::IsType(), CDownloadWithTorrent::m_bTorrentRequested, m_pDownload, m_pRequest, CTransfers::m_pSection, CShareazaApp::Message(), MSG_ERROR, NULL, CDownloadWithTorrent::OnTrackerEvent(), theApp, and Transfers.

Referenced by Run().

int CBTTrackerRequest::Run  )  [virtual]
 

Definition at line 197 of file BTTrackerRequest.cpp.

References CHttpRequest::Execute(), m_bProcess, m_pRequest, and Process().

void CBTTrackerRequest::SendCompleted CDownloadBase pDownload  )  [static]
 

Definition at line 143 of file BTTrackerRequest.cpp.

References CBTTrackerRequest().

Referenced by CDownload::OnMoved().

void CBTTrackerRequest::SendStarted CDownloadBase pDownload,
WORD  nNumWant = 0xFFFF
[static]
 

Definition at line 131 of file BTTrackerRequest.cpp.

References CBTTrackerRequest().

Referenced by CDownloadWithTorrent::RunTorrent(), and CDownloadWithTorrent::SeedTorrent().

void CBTTrackerRequest::SendStopped CDownloadBase pDownload  )  [static]
 

Definition at line 149 of file BTTrackerRequest.cpp.

References CBTTrackerRequest().

Referenced by CDownloadWithTorrent::CloseTorrent(), CDownloadWithTorrent::RunTorrent(), and CDownloadWithTorrent::~CDownloadWithTorrent().

void CBTTrackerRequest::SendUpdate CDownloadBase pDownload,
WORD  nNumWant = 0xFFFF
[static]
 

Definition at line 137 of file BTTrackerRequest.cpp.

References CBTTrackerRequest(), and NULL.

Referenced by CDownloadWithTorrent::FindMoreSources(), and CDownloadWithTorrent::RunTorrent().


Member Data Documentation

BOOL CBTTrackerRequest::m_bProcess
 

Definition at line 44 of file BTTrackerRequest.h.

Referenced by Run().

CDownload* CBTTrackerRequest::m_pDownload
 

Definition at line 43 of file BTTrackerRequest.h.

Referenced by Process().

CHttpRequest CBTTrackerRequest::m_pRequest
 

Definition at line 45 of file BTTrackerRequest.h.

Referenced by Process(), and Run().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:04 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2