#include <HostCache.h>
Public Member Functions | |
CHostCacheList (PROTOCOLID nProtocol) | |
virtual | ~CHostCacheList () |
CHostCacheHost * | Add (IN_ADDR *pAddress, WORD nPort, DWORD tSeen=0, LPCTSTR pszVendor=NULL) |
BOOL | Add (LPCTSTR pszHost, DWORD tSeen=0, LPCTSTR pszVendor=NULL) |
CHostCacheHost * | Find (IN_ADDR *pAddress) const |
BOOL | Check (CHostCacheHost *pHost) const |
void | Remove (CHostCacheHost *pHost) |
void | OnFailure (IN_ADDR *pAddress, WORD nPort) |
DWORD | CountHosts () const |
void | PruneByQueryAck () |
void | PruneOldHosts () |
void | Clear () |
void | Serialize (CArchive &ar, int nVersion) |
int | Import (LPCTSTR pszFile) |
int | ImportMET (CFile *pFile) |
int | LoadDefaultED2KServers () |
CHostCacheHost * | GetNewest () const |
CHostCacheHost * | GetOldest () const |
Public Attributes | |
PROTOCOLID | m_nProtocol |
DWORD | m_nHosts |
DWORD | m_nCookie |
CHostCacheHost * | m_pNewest |
CHostCacheHost * | m_pOldest |
Protected Member Functions | |
CHostCacheHost * | AddInternal (IN_ADDR *pAddress, WORD nPort, DWORD tSeen, LPCTSTR pszVendor) |
void | RemoveOldest () |
Protected Attributes | |
DWORD | m_nBuffer |
CHostCacheHost * | m_pBuffer |
CHostCacheHost * | m_pFree |
CHostCacheHost * | m_pHash [256] |
|
Definition at line 203 of file HostCache.cpp. References m_nBuffer, m_nCookie, m_nProtocol, m_pBuffer, and NULL. |
|
Definition at line 211 of file HostCache.cpp. |
|
Definition at line 273 of file HostCache.cpp. References AddInternal(), CSettings::Connection, GNUTELLA_DEFAULT_PORT, CSettings::sConnection::IgnoreOwnIP, CSecurity::IsDenied(), CNetwork::IsFirewalledAddress(), CNetwork::m_pHost, Network, Security, Settings, and TimeFromString(). |
|
|
Definition at line 327 of file HostCache.cpp. References m_nBuffer, m_nCookie, m_nHosts, CHostCacheHost::m_pAddress, m_pFree, m_pHash, m_pNewest, CHostCacheHost::m_pNextHash, CHostCacheHost::m_pNextTime, m_pOldest, CHostCacheHost::m_pPrevTime, CHostCacheHost::m_tFailure, NULL, RemoveOldest(), CHostCacheHost::Reset(), and CHostCacheHost::Update(). Referenced by Add(). |
|
Definition at line 421 of file HostCache.cpp. References CHostCacheHost::m_pNextTime, and m_pOldest. Referenced by CHostCache::Check(). |
|
Definition at line 220 of file HostCache.cpp. References CSettings::Gnutella, CSettings::sGnutella::HostCacheSize, m_nBuffer, m_nCookie, m_nHosts, m_nProtocol, CHostCacheHost::m_nProtocol, m_pBuffer, m_pFree, m_pHash, m_pNewest, CHostCacheHost::m_pNextHash, m_pOldest, NULL, and Settings. Referenced by CHostCache::Clear(), CHostCache::Load(), and ~CHostCacheList(). |
|
Definition at line 539 of file HostCache.cpp. References GetNewest(). Referenced by CWizardNetworksPage::DoDonkeyImport(), CDiscoveryServices::Execute(), CMainWnd::LocalSystemChecks(), and CWizardConnectionPage::OnWizardNext(). |
|
Definition at line 398 of file HostCache.cpp. References CHostCacheHost::m_pAddress, m_pHash, CHostCacheHost::m_pNextHash, and NULL. Referenced by CHostCache::Find(), CSearchManager::OnQueryAck(), CG2Neighbour::OnQueryKeyReq(), CEDClients::OnServerStatus(), CEDClients::OnUDP(), CEDClients::RunGlobalStatsRequests(), and CEDNeighbour::SendSharedFiles(). |
|
|
Definition at line 81 of file HostCache.h. References m_pOldest. Referenced by CNeighboursWithConnect::Maintain(). |
|
Definition at line 656 of file HostCache.cpp. References _tcsistr(), ImportMET(), and NULL. Referenced by CWizardNetworksPage::DoDonkeyImport(), CHostCache::Load(), and CHostCacheWnd::OnHostcacheImport(). |
|
Definition at line 675 of file HostCache.cpp. References Add(), CEDTag::Check(), ED2K_ST_DESCRIPTION, ED2K_ST_MAXFILES, ED2K_ST_MAXUSERS, ED2K_ST_SERVERNAME, ED2K_ST_UDPFLAGS, ED2K_TAG_INT, ED2K_TAG_STRING, CHostCacheHost::m_nFileLimit, CHostCacheHost::m_nUDPFlags, CHostCacheHost::m_nUserLimit, CEDTag::m_nValue, CNetwork::m_pSection, CHostCacheHost::m_sDescription, CHostCacheHost::m_sName, CEDTag::m_sValue, Network, NULL, and CEDTag::Read(). Referenced by Import(), CDonkeyServersDlg::OnRun(), and CDiscoveryServices::RunServerMet(). |
|
Definition at line 737 of file HostCache.cpp. References Add(), CBuffer::EnsureBuffer(), CSettings::General, CHostCacheHost::m_bPriority, CBuffer::m_nLength, CBuffer::m_pBuffer, CNetwork::m_pSection, CShareazaApp::Message(), MSG_DEFAULT, Network, CSettings::sGeneral::Path, CBuffer::ReadLine(), Settings, and theApp. Referenced by CWizardConnectionPage::OnWizardNext(). |
|
Definition at line 489 of file HostCache.cpp. References m_pHash, CHostCacheHost::m_pNextHash, and Remove(). Referenced by CHostCache::OnFailure(). |
|
Definition at line 552 of file HostCache.cpp. References CSettings::Gnutella2, m_pNewest, NULL, CSettings::sGnutella2::QueryHostDeadline, Remove(), and Settings. Referenced by CSearchManager::OnRun(). |
|
Definition at line 577 of file HostCache.cpp. References CSettings::Gnutella1, CSettings::Gnutella2, CSettings::sGnutella2::HostExpire, CSettings::sGnutella1::HostExpire, m_pNewest, NULL, PROTOCOL_G1, PROTOCOL_G2, Remove(), and Settings. Referenced by CNetwork::Connect(). |
|
Definition at line 434 of file HostCache.cpp. References m_nCookie, m_nHosts, CHostCacheHost::m_pAddress, m_pFree, m_pHash, m_pNewest, CHostCacheHost::m_pNextHash, CHostCacheHost::m_pNextTime, m_pOldest, and CHostCacheHost::m_pPrevTime. Referenced by OnFailure(), PruneByQueryAck(), PruneOldHosts(), CHostCache::Remove(), RemoveOldest(), and CEDClients::RunGlobalStatsRequests(). |
|
Definition at line 481 of file HostCache.cpp. References m_pOldest, and Remove(). Referenced by AddInternal(). |
|
Definition at line 607 of file HostCache.cpp. References m_nHosts, CHostCacheHost::m_pAddress, m_pFree, m_pHash, m_pNewest, CHostCacheHost::m_pNextHash, CHostCacheHost::m_pNextTime, m_pOldest, CHostCacheHost::m_pPrevTime, NULL, CHostCacheHost::Reset(), and CHostCacheHost::Serialize(). Referenced by CHostCache::Serialize(). |
|
Definition at line 48 of file HostCache.h. Referenced by AddInternal(), CHostCacheList(), and Clear(). |
|
Definition at line 44 of file HostCache.h. Referenced by AddInternal(), CHostCacheList(), Clear(), CHostCacheWnd::OnHostcachePriority(), CHostCacheWnd::OnTimer(), Remove(), and CHostCacheWnd::Update(). |
|
Definition at line 43 of file HostCache.h. Referenced by AddInternal(), Clear(), CWizardFinishedPage::OnWizardFinish(), Remove(), and Serialize(). |
|
Definition at line 42 of file HostCache.h. Referenced by CHostCacheList(), Clear(), and CHostCache::Serialize(). |
|
Definition at line 49 of file HostCache.h. Referenced by CHostCacheList(), Clear(), and ~CHostCacheList(). |
|
Definition at line 50 of file HostCache.h. Referenced by AddInternal(), Clear(), Remove(), and Serialize(). |
|
Definition at line 51 of file HostCache.h. Referenced by AddInternal(), Clear(), Find(), OnFailure(), Remove(), and Serialize(). |
|
Definition at line 45 of file HostCache.h. Referenced by AddInternal(), Clear(), GetNewest(), PruneByQueryAck(), PruneOldHosts(), Remove(), and Serialize(). |
|
Definition at line 46 of file HostCache.h. Referenced by AddInternal(), Check(), Clear(), GetOldest(), Remove(), RemoveOldest(), and Serialize(). |