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

CSearchManager Class Reference

#include <SearchManager.h>

List of all members.

Public Member Functions

 CSearchManager ()
virtual ~CSearchManager ()
POSITION GetIterator () const
CManagedSearchGetNext (POSITION &pos) const
int GetCount () const
CManagedSearchFind (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


Constructor & Destructor Documentation

CSearchManager::CSearchManager  ) 
 

Definition at line 45 of file SearchManager.cpp.

References m_nPriorityClass, m_nPriorityCount, m_pLastED2KSearch, and m_tLastTick.

CSearchManager::~CSearchManager  )  [virtual]
 

Definition at line 55 of file SearchManager.cpp.


Member Function Documentation

void CSearchManager::Add CManagedSearch pSearch  )  [protected]
 

Definition at line 62 of file SearchManager.cpp.

References m_pList, and NULL.

Referenced by CManagedSearch::Start().

CManagedSearch * CSearchManager::Find GGUID pGUID  ) 
 

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().

int CSearchManager::GetCount  )  const
 

Definition at line 87 of file SearchManager.cpp.

References m_pList.

POSITION CSearchManager::GetIterator  )  const
 

Definition at line 77 of file SearchManager.cpp.

References m_pList.

Referenced by OnRun().

CManagedSearch * CSearchManager::GetNext POSITION &  pos  )  const
 

Definition at line 82 of file SearchManager.cpp.

References m_pList.

Referenced by OnRun().

BOOL CSearchManager::OnQueryAck CG2Packet pPacket,
SOCKADDR_IN *  pHost,
GGUID pGUID
 

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().

BOOL CSearchManager::OnQueryHits CQueryHit pHits  ) 
 

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().

WORD CSearchManager::OnQueryStatusRequest GGUID pGUID  ) 
 

Definition at line 293 of file SearchManager.cpp.

References Find(), CManagedSearch::m_nHits, m_pSection, and NULL.

Referenced by CG1Neighbour::OnVendor().

void CSearchManager::OnRun  ) 
 

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().

void CSearchManager::Remove CManagedSearch pSearch  )  [protected]
 

Definition at line 68 of file SearchManager.cpp.

References m_pList, and NULL.

Referenced by CManagedSearch::Stop().


Friends And Related Function Documentation

friend class CManagedSearch [friend]
 

Definition at line 63 of file SearchManager.h.


Member Data Documentation

int CSearchManager::m_nPriorityClass [protected]
 

Definition at line 46 of file SearchManager.h.

Referenced by CSearchManager(), and OnRun().

int CSearchManager::m_nPriorityCount [protected]
 

Definition at line 47 of file SearchManager.h.

Referenced by CSearchManager(), and OnRun().

GGUID CSearchManager::m_pLastED2KSearch
 

Definition at line 42 of file SearchManager.h.

Referenced by CSearchManager(), CManagedSearch::ExecuteNeighbours(), and CManagedSearch::IsLastED2KSearch().

CPtrList CSearchManager::m_pList [protected]
 

Definition at line 44 of file SearchManager.h.

Referenced by Add(), Find(), GetCount(), GetIterator(), GetNext(), OnRun(), and Remove().

CMutex CSearchManager::m_pSection
 

Definition at line 41 of file SearchManager.h.

Referenced by OnQueryAck(), OnQueryHits(), OnQueryStatusRequest(), OnRun(), CManagedSearch::Start(), CDownloadWithSearch::StartAutomaticSearch(), CDownloadWithSearch::StartManualSearch(), and CManagedSearch::Stop().

DWORD CSearchManager::m_tLastTick [protected]
 

Definition at line 45 of file SearchManager.h.

Referenced by CSearchManager(), and OnRun().


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