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

CHubHorizonPool Class Reference

#include <HubHorizon.h>

List of all members.

Public Member Functions

 CHubHorizonPool ()
virtual ~CHubHorizonPool ()
void Setup ()
void Clear ()
CHubHorizonHubAdd (IN_ADDR *pAddress, WORD nPort)
void Remove (CHubHorizonHub *pHub)
CHubHorizonHubFind (IN_ADDR *pAddress)
int AddHorizonHubs (CG2Packet *pPacket)

Protected Attributes

CHubHorizonHubm_pBuffer
DWORD m_nBuffer
CHubHorizonHubm_pFree
CHubHorizonHubm_pActive
DWORD m_nActive


Constructor & Destructor Documentation

CHubHorizonPool::CHubHorizonPool  ) 
 

Definition at line 40 of file HubHorizon.cpp.

References m_nActive, m_nBuffer, m_pActive, m_pBuffer, m_pFree, and NULL.

CHubHorizonPool::~CHubHorizonPool  )  [virtual]
 

Definition at line 49 of file HubHorizon.cpp.

References m_pBuffer, and NULL.


Member Function Documentation

CHubHorizonHub * CHubHorizonPool::Add IN_ADDR *  pAddress,
WORD  nPort
 

Definition at line 93 of file HubHorizon.cpp.

References m_nActive, m_nBuffer, CHubHorizonHub::m_nPort, CHubHorizonHub::m_nReference, m_pActive, CHubHorizonHub::m_pAddress, m_pFree, CHubHorizonHub::m_pNext, and NULL.

Referenced by CHubHorizonGroup::Add().

int CHubHorizonPool::AddHorizonHubs CG2Packet pPacket  ) 
 

Definition at line 163 of file HubHorizon.cpp.

References m_pActive, CHubHorizonHub::m_pNext, CShareazaApp::Message(), MSG_DEBUG, theApp, CPacket::WriteLongLE(), CG2Packet::WritePacket(), and CPacket::WriteShortBE().

Referenced by CNeighboursWithG2::CreateQueryWeb().

void CHubHorizonPool::Clear  ) 
 

Definition at line 77 of file HubHorizon.cpp.

References m_nActive, m_nBuffer, m_pActive, m_pBuffer, m_pFree, CHubHorizonHub::m_pNext, and NULL.

CHubHorizonHub * CHubHorizonPool::Find IN_ADDR *  pAddress  ) 
 

Definition at line 147 of file HubHorizon.cpp.

References m_pActive, CHubHorizonHub::m_pNext, and NULL.

Referenced by CNeighboursWithG2::CreateQueryWeb(), and CHostCacheWnd::Update().

void CHubHorizonPool::Remove CHubHorizonHub pHub  ) 
 

Definition at line 125 of file HubHorizon.cpp.

References m_nActive, m_pActive, m_pFree, and CHubHorizonHub::m_pNext.

Referenced by CHubHorizonGroup::Clear().

void CHubHorizonPool::Setup  ) 
 

Definition at line 57 of file HubHorizon.cpp.

References CSettings::Gnutella2, CSettings::sGnutella2::HubHorizonSize, m_nActive, m_nBuffer, m_pActive, m_pBuffer, m_pFree, CHubHorizonHub::m_pNext, NULL, and Settings.

Referenced by CNeighboursWithG2::Connect().


Member Data Documentation

DWORD CHubHorizonPool::m_nActive [protected]
 

Definition at line 74 of file HubHorizon.h.

Referenced by Add(), CHubHorizonPool(), Clear(), Remove(), and Setup().

DWORD CHubHorizonPool::m_nBuffer [protected]
 

Definition at line 71 of file HubHorizon.h.

Referenced by Add(), CHubHorizonPool(), Clear(), and Setup().

CHubHorizonHub* CHubHorizonPool::m_pActive [protected]
 

Definition at line 73 of file HubHorizon.h.

Referenced by Add(), AddHorizonHubs(), CHubHorizonPool(), Clear(), Find(), Remove(), and Setup().

CHubHorizonHub* CHubHorizonPool::m_pBuffer [protected]
 

Definition at line 70 of file HubHorizon.h.

Referenced by CHubHorizonPool(), Clear(), Setup(), and ~CHubHorizonPool().

CHubHorizonHub* CHubHorizonPool::m_pFree [protected]
 

Definition at line 72 of file HubHorizon.h.

Referenced by Add(), CHubHorizonPool(), Clear(), Remove(), and Setup().


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