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

CHostCache Class Reference

#include <HostCache.h>

List of all members.

Public Member Functions

 CHostCache ()
BOOL Load ()
BOOL Save ()
void Clear ()
CHostCacheHostFind (IN_ADDR *pAddress) const
BOOL Check (CHostCacheHost *pHost) const
void Remove (CHostCacheHost *pHost)
void OnFailure (IN_ADDR *pAddress, WORD nPort)
CHostCacheListForProtocol (PROTOCOLID nProtocol)

Public Attributes

CHostCacheList Gnutella1
CHostCacheList Gnutella2
CHostCacheList eDonkey
CPtrList m_pList

Protected Member Functions

void Serialize (CArchive &ar)


Constructor & Destructor Documentation

CHostCache::CHostCache  ) 
 

Definition at line 50 of file HostCache.cpp.

References eDonkey, Gnutella1, Gnutella2, and m_pList.


Member Function Documentation

BOOL CHostCache::Check CHostCacheHost pHost  )  const
 

Definition at line 171 of file HostCache.cpp.

References CHostCacheList::Check(), and m_pList.

Referenced by CHostCacheWnd::GetItem().

void CHostCache::Clear  ) 
 

Definition at line 62 of file HostCache.cpp.

References CHostCacheList::Clear(), and m_pList.

CHostCacheHost * CHostCache::Find IN_ADDR *  pAddress  )  const
 

Definition at line 161 of file HostCache.cpp.

References CHostCacheList::Find(), m_pList, and NULL.

CHostCacheList* CHostCache::ForProtocol PROTOCOLID  nProtocol  )  [inline]
 

Definition at line 180 of file HostCache.h.

References eDonkey, Gnutella1, Gnutella2, NULL, PROTOCOL_ED2K, PROTOCOL_G1, and PROTOCOL_G2.

Referenced by CNeighboursWithConnect::Maintain(), CHostCacheWnd::OnTimer(), CNetwork::OnWinsock(), and CHostCacheWnd::Update().

BOOL CHostCache::Load  ) 
 

Definition at line 71 of file HostCache.cpp.

References CHostCacheList::Clear(), eDonkey, CSettings::General, CHostCacheList::GetNewest(), CHostCacheList::Import(), m_pList, CNetwork::m_pSection, Network, NULL, Serialize(), Settings, and CSettings::sGeneral::UserPath.

Referenced by CShareazaApp::InitInstance().

void CHostCache::OnFailure IN_ADDR *  pAddress,
WORD  nPort
 

Definition at line 190 of file HostCache.cpp.

References m_pList, and CHostCacheList::OnFailure().

Referenced by CShakeNeighbour::Close(), CEDNeighbour::OnDropped(), CShakeNeighbour::OnHeadersCompleteG1(), and CNeighboursWnd::OnNeighboursDisconnect().

void CHostCache::Remove CHostCacheHost pHost  ) 
 

Definition at line 181 of file HostCache.cpp.

References m_pList, and CHostCacheList::Remove().

Referenced by CHostCacheWnd::OnHostCacheRemove().

BOOL CHostCache::Save  ) 
 

Definition at line 102 of file HostCache.cpp.

References CSettings::General, CNetwork::m_pSection, Network, Serialize(), Settings, and CSettings::sGeneral::UserPath.

Referenced by CShareazaApp::ExitInstance(), CHostCacheWnd::OnDestroy(), CHostCacheWnd::OnHostcacheImport(), CDonkeyServersDlg::OnRun(), and CDiscoveryServices::RunServerMet().

void CHostCache::Serialize CArchive &  ar  )  [protected]
 

Definition at line 119 of file HostCache.cpp.

References CHostCacheList::m_nProtocol, m_pList, and CHostCacheList::Serialize().

Referenced by Load(), and Save().


Member Data Documentation

CHostCacheList CHostCache::eDonkey
 

Definition at line 162 of file HostCache.h.

Referenced by CHostCache(), CWizardNetworksPage::DoDonkeyImport(), CDiscoveryServices::Execute(), CManagedSearch::ExecuteDonkeyMesh(), ForProtocol(), Load(), CMainWnd::LocalSystemChecks(), CEDClient::OnHello(), CHostCacheWnd::OnHostcacheImport(), CHostCacheWnd::OnHostcachePriority(), CEDNeighbour::OnIdChange(), CDonkeyServersDlg::OnRun(), CEDNeighbour::OnServerIdent(), CEDNeighbour::OnServerList(), CEDNeighbour::OnServerStatus(), CEDClients::OnServerStatus(), CEDClients::OnUDP(), CWizardFinishedPage::OnWizardFinish(), CWizardConnectionPage::OnWizardNext(), CEDClients::RunGlobalStatsRequests(), CDiscoveryServices::RunServerMet(), and CEDNeighbour::SendSharedFiles().

CHostCacheList CHostCache::Gnutella1
 

Definition at line 160 of file HostCache.h.

Referenced by CHostCache(), CNetwork::Connect(), CDiscoveryServices::Execute(), ForProtocol(), CG1Neighbour::OnClusterAdvisor(), CShakeNeighbour::OnHeaderLine(), CG1Neighbour::OnPong(), CDiscoveryServices::RunWebCacheGet(), CG1Neighbour::SendClusterAdvisor(), and CShakeNeighbour::SendHostHeaders().

CHostCacheList CHostCache::Gnutella2
 

Definition at line 161 of file HostCache.h.

Referenced by CHostCache(), CNeighboursWithG2::CreateQueryWeb(), CDiscoveryServices::Execute(), CManagedSearch::ExecuteG2Mesh(), ForProtocol(), CG2Neighbour::OnHAW(), CShakeNeighbour::OnHeaderLine(), CG2Neighbour::OnKHL(), CG2Neighbour::OnLNI(), CSearchManager::OnQueryAck(), CG2Neighbour::OnQueryAck(), CDatagrams::OnQueryAck(), CG2Neighbour::OnQueryKeyAns(), CDatagrams::OnQueryKeyAnswer(), CG2Neighbour::OnQueryKeyReq(), CSearchManager::OnRun(), CWizardConnectionPage::OnWizardNext(), CDiscoveryServices::RunWebCacheGet(), CShakeNeighbour::SendHostHeaders(), and CG2Neighbour::SendKHL().

CPtrList CHostCache::m_pList
 

Definition at line 163 of file HostCache.h.

Referenced by Check(), CHostCache(), Clear(), Find(), Load(), OnFailure(), Remove(), and Serialize().


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