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

CNeighboursWithG2 Class Reference

#include <NeighboursWithG2.h>

Inheritance diagram for CNeighboursWithG2:

CNeighboursWithG1 CNeighboursBase CNeighboursWithED2K CNeighboursWithRouting CNeighboursWithConnect CNeighbours List of all members.

Public Member Functions

 CNeighboursWithG2 ()
virtual ~CNeighboursWithG2 ()
virtual void Connect ()
CG2PacketCreateQueryWeb (GGUID *pGUID, CNeighbour *pExcept=NULL)
CG2NeighbourGetRandomHub (CG2Neighbour *pExcept=NULL, GGUID *pGUID=NULL)

Constructor & Destructor Documentation

CNeighboursWithG2::CNeighboursWithG2  ) 
 

Definition at line 43 of file NeighboursWithG2.cpp.

CNeighboursWithG2::~CNeighboursWithG2  )  [virtual]
 

Definition at line 47 of file NeighboursWithG2.cpp.


Member Function Documentation

void CNeighboursWithG2::Connect  )  [virtual]
 

Reimplemented from CNeighboursWithG1.

Reimplemented in CNeighbours.

Definition at line 54 of file NeighboursWithG2.cpp.

References CNeighboursWithG1::Connect(), HubHorizonPool, and CHubHorizonPool::Setup().

Referenced by CNeighbours::Connect().

CG2Packet * CNeighboursWithG2::CreateQueryWeb GGUID pGUID,
CNeighbour pExcept = NULL
 

Definition at line 63 of file NeighboursWithG2.cpp.

References CHubHorizonPool::AddHorizonHubs(), CHubHorizonPool::Find(), G2_PACKET_QUERY_ACK, CNeighboursBase::Get(), CNeighboursBase::GetCount(), CNeighboursBase::GetIterator(), CHostCacheList::GetNewest(), CNeighboursBase::GetNext(), CHostCache::Gnutella2, HostCache, HubHorizonPool, CG2Neighbour::m_nLeafCount, CNeighbour::m_nNodeType, CNeighbour::m_nProtocol, CNeighbour::m_nState, CConnection::m_pHost, CNetwork::m_pHost, CConnection::m_sAddress, CShareazaApp::Message(), MSG_DEBUG, Network, CG2Packet::New(), nrsConnected, ntLeaf, NULL, PROTOCOL_G2, theApp, CPacket::WriteLongBE(), CPacket::WriteLongLE(), CG2Packet::WritePacket(), and CPacket::WriteShortBE().

Referenced by CG2Neighbour::OnQuery(), and CDatagrams::OnQuery().

CG2Neighbour * CNeighboursWithG2::GetRandomHub CG2Neighbour pExcept = NULL,
GGUID pGUID = NULL
 

Definition at line 129 of file NeighboursWithG2.cpp.

References CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), CRouteCache::Lookup(), CNeighbour::m_nNodeType, CNeighbour::m_nProtocol, CNeighbour::m_nState, CG2Neighbour::m_pGUIDCache, nrsConnected, ntLeaf, NULL, and PROTOCOL_G2.

Referenced by CG2Neighbour::OnHAW().


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