#include <SearchManager.h>
Public Member Functions | |
CSearchManager () | |
virtual | ~CSearchManager () |
POSITION | GetIterator () const |
CManagedSearch * | GetNext (POSITION &pos) const |
int | GetCount () const |
CManagedSearch * | Find (GGUID *pGUID) |
void | OnRun () |
BOOL | OnQueryAck (CG2Packet *pPacket, SOCKADDR_IN *pHost, GGUID *pGUID) |
BOOL | OnQueryHits (CQueryHit *pHits) |
WORD | OnQueryStatusRequest (GGUID *pGUID) |
Public Attributes | |
CMutex | m_pSection |
GGUID | m_pLastED2KSearch |
Protected Member Functions | |
void | Add (CManagedSearch *pSearch) |
void | Remove (CManagedSearch *pSearch) |
Protected Attributes | |
CPtrList | m_pList |
DWORD | m_tLastTick |
int | m_nPriorityClass |
int | m_nPriorityCount |
Friends | |
class | CManagedSearch |
|
Definition at line 45 of file SearchManager.cpp. References m_nPriorityClass, m_nPriorityCount, m_pLastED2KSearch, and m_tLastTick. |
|
Definition at line 55 of file SearchManager.cpp. |
|
Definition at line 62 of file SearchManager.cpp. Referenced by CManagedSearch::Start(). |
|
Definition at line 92 of file SearchManager.cpp. References CQuerySearch::m_pGUID, m_pList, CManagedSearch::m_pSearch, and NULL. Referenced by OnQueryAck(), OnQueryHits(), and OnQueryStatusRequest(). |
|
Definition at line 87 of file SearchManager.cpp. References m_pList. |
|
Definition at line 77 of file SearchManager.cpp. References m_pList. Referenced by OnRun(). |
|
Definition at line 82 of file SearchManager.cpp. References m_pList. Referenced by OnRun(). |
|
Definition at line 153 of file SearchManager.cpp. References CHostCacheList::Add(), Find(), CHostCacheList::Find(), CHostCache::Gnutella2, HostCache, CNetwork::IsFirewalledAddress(), m_pSection, CShareazaApp::Message(), MSG_DEBUG, Network, NULL, and theApp. Referenced by CG2Neighbour::OnQueryAck(), and CDatagrams::OnQueryAck(). |
|
Definition at line 271 of file SearchManager.cpp. References Find(), CManagedSearch::m_nHits, m_pSection, NULL, and CManagedSearch::OnHostAcknowledge(). Referenced by CNeighbour::OnCommonHit(), and CDatagrams::OnHit(). |
|
Definition at line 293 of file SearchManager.cpp. References Find(), CManagedSearch::m_nHits, m_pSection, and NULL. Referenced by CG1Neighbour::OnVendor(). |
|
Definition at line 106 of file SearchManager.cpp. References CManagedSearch::Execute(), GetIterator(), GetNext(), CHostCache::Gnutella2, HostCache, CNetwork::IsWellConnected(), CManagedSearch::m_nPriority, m_nPriorityClass, m_nPriorityCount, m_pList, m_pSection, m_tLastTick, Network, CHostCacheList::PruneByQueryAck(), and CManagedSearch::spMax. Referenced by CNetwork::OnRun(). |
|
Definition at line 68 of file SearchManager.cpp. Referenced by CManagedSearch::Stop(). |
|
Definition at line 63 of file SearchManager.h. |
|
Definition at line 46 of file SearchManager.h. Referenced by CSearchManager(), and OnRun(). |
|
Definition at line 47 of file SearchManager.h. Referenced by CSearchManager(), and OnRun(). |
|
Definition at line 42 of file SearchManager.h. Referenced by CSearchManager(), CManagedSearch::ExecuteNeighbours(), and CManagedSearch::IsLastED2KSearch(). |
|
Definition at line 44 of file SearchManager.h. Referenced by Add(), Find(), GetCount(), GetIterator(), GetNext(), OnRun(), and Remove(). |
|
Definition at line 41 of file SearchManager.h. Referenced by OnQueryAck(), OnQueryHits(), OnQueryStatusRequest(), OnRun(), CManagedSearch::Start(), CDownloadWithSearch::StartAutomaticSearch(), CDownloadWithSearch::StartManualSearch(), and CManagedSearch::Stop(). |
|
Definition at line 45 of file SearchManager.h. Referenced by CSearchManager(), and OnRun(). |