#include <DiscoveryServices.h>
Public Types | |
enum | { dsNull, dsGnutella, dsWebCache, dsServerMet, dsBlocked } |
Public Member Functions | |
CDiscoveryService (int nType=0, LPCTSTR pszAddress=NULL) | |
virtual | ~CDiscoveryService () |
void | Remove (BOOL bCheck=TRUE) |
BOOL | Execute (int nMode=0) |
void | OnAccess () |
void | OnHostAdd (int nCount=1) |
void | OnSuccess () |
void | OnFailure () |
Public Attributes | |
int | m_nType |
CString | m_sAddress |
BOOL | m_bGnutella2 |
BOOL | m_bGnutella1 |
DWORD | m_tCreated |
DWORD | m_tAccessed |
DWORD | m_nAccesses |
DWORD | m_tUpdated |
DWORD | m_nUpdates |
DWORD | m_nHosts |
DWORD | m_nFailures |
DWORD | m_nAccessPeriod |
DWORD | m_nUpdatePeriod |
Protected Member Functions | |
void | Serialize (CArchive &ar, int nVersion) |
BOOL | ResolveGnutella () |
Friends | |
class | CDiscoveryServices |
|
Definition at line 127 of file DiscoveryServices.h. |
|
Definition at line 1473 of file DiscoveryServices.cpp. References CSettings::sDiscovery::DefaultUpdate, CSettings::Discovery, m_bGnutella1, m_bGnutella2, m_nAccesses, m_nAccessPeriod, m_nFailures, m_nHosts, m_nType, m_nUpdatePeriod, m_nUpdates, m_sAddress, m_tAccessed, m_tCreated, m_tUpdated, NULL, Settings, and CSettings::sDiscovery::UpdatePeriod. |
|
Definition at line 1491 of file DiscoveryServices.cpp. |
|
Definition at line 1547 of file DiscoveryServices.cpp. References dsGnutella, dsServerMet, dsWebCache, m_bGnutella2, m_nType, CNetwork::m_pSection, Network, PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, CDiscoveryServices::RequestWebCache(), ResolveGnutella(), and CDiscoveryServices::wcmServerMet. Referenced by CDiscoveryWnd::OnDiscoveryQuery(). |
|
Definition at line 1596 of file DiscoveryServices.cpp. References m_nAccesses, m_tAccessed, and NULL. Referenced by CDiscoveryServices::RunServerMet(), CDiscoveryServices::RunWebCacheGet(), and CDiscoveryServices::RunWebCacheUpdate(). |
|
Definition at line 1619 of file DiscoveryServices.cpp. References CSettings::Discovery, CSettings::sDiscovery::FailureLimit, IDS_DISCOVERY_FAIL_REMOVE, IDS_DISCOVERY_FAILED, m_nFailures, CShareazaApp::Message(), MSG_ERROR, Remove(), Settings, and theApp. Referenced by CDiscoveryServices::OnRun(), and ResolveGnutella(). |
|
Definition at line 1602 of file DiscoveryServices.cpp. References m_nFailures, and m_nHosts. Referenced by CDiscoveryServices::RunServerMet(), and CDiscoveryServices::RunWebCacheGet(). |
|
Definition at line 1608 of file DiscoveryServices.cpp. References dsServerMet, dsWebCache, IDS_DISCOVERY_WEB_SUCCESS, m_nFailures, m_nType, m_sAddress, CShareazaApp::Message(), MSG_DEFAULT, and theApp. Referenced by ResolveGnutella(), CDiscoveryServices::RunServerMet(), CDiscoveryServices::RunWebCacheGet(), and CDiscoveryServices::RunWebCacheUpdate(). |
|
Definition at line 1498 of file DiscoveryServices.cpp. References CDiscoveryServices::Remove(). Referenced by CDiscoveryWnd::OnDiscoveryRemove(), OnFailure(), CDiscoveryServices::RunWebCacheGet(), and CDiscoveryServices::RunWebCacheUpdate(). |
|
Definition at line 1571 of file DiscoveryServices.cpp. References CNetwork::AsyncResolve(), CNetwork::Connect(), GNUTELLA_DEFAULT_PORT, m_sAddress, Network, OnFailure(), OnSuccess(), and PROTOCOL_G1. Referenced by Execute(), and CDiscoveryServices::ExecuteBootstraps(). |
|
Definition at line 1506 of file DiscoveryServices.cpp. References m_bGnutella1, m_bGnutella2, m_nAccesses, m_nAccessPeriod, m_nFailures, m_nHosts, m_nType, m_nUpdatePeriod, m_nUpdates, m_sAddress, m_tAccessed, m_tCreated, and m_tUpdated. Referenced by CDiscoveryServices::Serialize(). |
|
Definition at line 144 of file DiscoveryServices.h. |
|
|
|
Definition at line 119 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::GetRandomWebCache(), OnAccess(), Serialize(), and CDiscoveryWnd::Update(). |
|
Definition at line 124 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::GetRandomService(), CDiscoveryServices::GetRandomWebCache(), CDiscoveryServices::RequestWebCache(), CDiscoveryServices::RunWebCacheGet(), CDiscoveryServices::RunWebCacheUpdate(), and Serialize(). |
|
Definition at line 123 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::GetRandomWebCache(), OnFailure(), OnHostAdd(), OnSuccess(), Serialize(), and CDiscoveryWnd::Update(). |
|
Definition at line 122 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::GetRandomWebCache(), OnHostAdd(), Serialize(), and CDiscoveryWnd::Update(). |
|
|
Definition at line 125 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::GetRandomWebCache(), CDiscoveryServices::RunWebCacheUpdate(), and Serialize(). |
|
Definition at line 121 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::RunWebCacheUpdate(), Serialize(), and CDiscoveryWnd::Update(). |
|
|
Definition at line 118 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::GetRandomService(), CDiscoveryServices::GetRandomWebCache(), OnAccess(), CDiscoveryServices::RequestWebCache(), Serialize(), and CDiscoveryWnd::Update(). |
|
Definition at line 117 of file DiscoveryServices.h. Referenced by CDiscoveryService(), and Serialize(). |
|
Definition at line 120 of file DiscoveryServices.h. Referenced by CDiscoveryService(), CDiscoveryServices::GetRandomWebCache(), CDiscoveryServices::RunWebCacheUpdate(), and Serialize(). |