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

CSourceURL Class Reference

#include <SourceURL.h>

List of all members.

Public Member Functions

 CSourceURL (LPCTSTR pszURL=NULL)
void Clear ()
BOOL Parse (LPCTSTR pszURL, BOOL bResolve=TRUE)
BOOL ParseHTTP (LPCTSTR pszURL, BOOL bResolve=TRUE)
BOOL ParseFTP (LPCTSTR pszURL, BOOL bResolve=TRUE)
BOOL ParseED2KFTP (LPCTSTR pszURL, BOOL bResolve=TRUE)
BOOL ParseBTC (LPCTSTR pszURL, BOOL bResolve=TRUE)

Public Attributes

CString m_sURL
PROTOCOLID m_nProtocol
CString m_sAddress
IN_ADDR m_pAddress
WORD m_nPort
IN_ADDR m_pServerAddress
WORD m_nServerPort
CString m_sPath
BOOL m_bSHA1
SHA1 m_pSHA1
BOOL m_bED2K
MD4 m_pED2K
BOOL m_bBTH
SHA1 m_pBTH
BOOL m_bBTC
SHA1 m_pBTC
BOOL m_bSize
QWORD m_nSize
CString m_sLogin
CString m_sPassword


Constructor & Destructor Documentation

CSourceURL::CSourceURL LPCTSTR  pszURL = NULL  ) 
 

Definition at line 40 of file SourceURL.cpp.

References Clear(), NULL, and Parse().


Member Function Documentation

void CSourceURL::Clear  ) 
 

Definition at line 49 of file SourceURL.cpp.

References m_bBTC, m_bBTH, m_bED2K, m_bSHA1, m_bSize, m_nPort, m_nProtocol, m_nServerPort, m_pAddress, m_pServerAddress, m_sAddress, m_sLogin, m_sPassword, m_sPath, m_sURL, and PROTOCOL_NULL.

Referenced by CSourceURL(), and Parse().

BOOL CSourceURL::Parse LPCTSTR  pszURL,
BOOL  bResolve = TRUE
 

Definition at line 71 of file SourceURL.cpp.

References Clear(), ParseBTC(), ParseED2KFTP(), ParseFTP(), and ParseHTTP().

Referenced by CLibraryFile::AddAlternateSource(), CDownloadWithSources::AddSourceURL(), CSourceURL(), CBTClient::OnSourceRequest(), and CDownloadSource::ResolveURL().

BOOL CSourceURL::ParseBTC LPCTSTR  pszURL,
BOOL  bResolve = TRUE
 

Definition at line 255 of file SourceURL.cpp.

References ED2K_DEFAULT_PORT, CSHA::HashFromString(), m_bBTC, m_nPort, m_nProtocol, m_pAddress, m_pBTC, m_pBTH, m_sAddress, m_sURL, Network, PROTOCOL_BT, and CNetwork::Resolve().

Referenced by Parse().

BOOL CSourceURL::ParseED2KFTP LPCTSTR  pszURL,
BOOL  bResolve = TRUE
 

Definition at line 197 of file SourceURL.cpp.

References ED2K_DEFAULT_PORT, CED2K::HashFromString(), m_bSize, m_nPort, m_nProtocol, m_nServerPort, m_nSize, m_pAddress, m_pED2K, m_pServerAddress, m_sAddress, m_sURL, Network, PROTOCOL_ED2K, and CNetwork::Resolve().

Referenced by Parse().

BOOL CSourceURL::ParseFTP LPCTSTR  pszURL,
BOOL  bResolve = TRUE
 

Definition at line 137 of file SourceURL.cpp.

References m_nPort, m_nProtocol, m_pAddress, m_sAddress, m_sLogin, m_sPassword, m_sPath, m_sURL, Network, PROTOCOL_FTP, and CNetwork::Resolve().

Referenced by Parse(), and CDownloadTransferFTP::SendCommand().

BOOL CSourceURL::ParseHTTP LPCTSTR  pszURL,
BOOL  bResolve = TRUE
 

Definition at line 88 of file SourceURL.cpp.

References CSHA::HashFromURN(), m_bSHA1, m_nPort, m_nProtocol, m_pAddress, m_pSHA1, m_sAddress, m_sPath, m_sURL, Network, PROTOCOL_HTTP, and CNetwork::Resolve().

Referenced by Parse(), and CDownloadTransferHTTP::SendRequest().


Member Data Documentation

BOOL CSourceURL::m_bBTC
 

Definition at line 52 of file SourceURL.h.

Referenced by Clear(), CBTClient::OnSourceRequest(), ParseBTC(), and CDownloadSource::ResolveURL().

BOOL CSourceURL::m_bBTH
 

Definition at line 50 of file SourceURL.h.

Referenced by Clear().

BOOL CSourceURL::m_bED2K
 

Definition at line 48 of file SourceURL.h.

Referenced by Clear(), and CDownloadSource::ResolveURL().

BOOL CSourceURL::m_bSHA1
 

Definition at line 46 of file SourceURL.h.

Referenced by CLibraryFile::AddAlternateSource(), CDownloadWithSources::AddSourceURL(), Clear(), ParseHTTP(), and CDownloadSource::ResolveURL().

BOOL CSourceURL::m_bSize
 

Definition at line 54 of file SourceURL.h.

Referenced by Clear(), and ParseED2KFTP().

WORD CSourceURL::m_nPort
 

Definition at line 41 of file SourceURL.h.

Referenced by Clear(), ParseBTC(), ParseED2KFTP(), ParseFTP(), ParseHTTP(), and CDownloadSource::ResolveURL().

PROTOCOLID CSourceURL::m_nProtocol
 

Definition at line 37 of file SourceURL.h.

Referenced by Clear(), ParseBTC(), ParseED2KFTP(), ParseFTP(), ParseHTTP(), and CDownloadSource::ResolveURL().

WORD CSourceURL::m_nServerPort
 

Definition at line 43 of file SourceURL.h.

Referenced by Clear(), ParseED2KFTP(), and CDownloadSource::ResolveURL().

QWORD CSourceURL::m_nSize
 

Definition at line 55 of file SourceURL.h.

Referenced by ParseED2KFTP().

IN_ADDR CSourceURL::m_pAddress
 

Definition at line 40 of file SourceURL.h.

Referenced by CLibraryFile::AddAlternateSource(), CDownloadWithSources::AddSourceURL(), Clear(), ParseBTC(), ParseED2KFTP(), ParseFTP(), ParseHTTP(), and CDownloadSource::ResolveURL().

SHA1 CSourceURL::m_pBTC
 

Definition at line 53 of file SourceURL.h.

Referenced by CBTClient::OnSourceRequest(), ParseBTC(), and CDownloadSource::ResolveURL().

SHA1 CSourceURL::m_pBTH
 

Definition at line 51 of file SourceURL.h.

Referenced by ParseBTC().

MD4 CSourceURL::m_pED2K
 

Definition at line 49 of file SourceURL.h.

Referenced by ParseED2KFTP().

IN_ADDR CSourceURL::m_pServerAddress
 

Definition at line 42 of file SourceURL.h.

Referenced by Clear(), ParseED2KFTP(), and CDownloadSource::ResolveURL().

SHA1 CSourceURL::m_pSHA1
 

Definition at line 47 of file SourceURL.h.

Referenced by CLibraryFile::AddAlternateSource(), CDownloadWithSources::AddSourceURL(), and ParseHTTP().

CString CSourceURL::m_sAddress
 

Definition at line 39 of file SourceURL.h.

Referenced by Clear(), ParseBTC(), ParseED2KFTP(), ParseFTP(), ParseHTTP(), and CDownloadTransferHTTP::SendRequest().

CString CSourceURL::m_sLogin
 

Definition at line 56 of file SourceURL.h.

Referenced by Clear(), ParseFTP(), and CDownloadTransferFTP::SendCommand().

CString CSourceURL::m_sPassword
 

Definition at line 57 of file SourceURL.h.

Referenced by Clear(), ParseFTP(), and CDownloadTransferFTP::SendCommand().

CString CSourceURL::m_sPath
 

Definition at line 44 of file SourceURL.h.

Referenced by Clear(), ParseFTP(), ParseHTTP(), CDownloadTransferFTP::SendCommand(), and CDownloadTransferHTTP::SendRequest().

CString CSourceURL::m_sURL
 

Definition at line 36 of file SourceURL.h.

Referenced by Clear(), ParseBTC(), ParseED2KFTP(), ParseFTP(), and ParseHTTP().


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