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

CNeighboursWithG1 Class Reference

#include <NeighboursWithG1.h>

Inheritance diagram for CNeighboursWithG1:

CNeighboursBase CNeighboursWithG2 CNeighboursWithED2K CNeighboursWithRouting CNeighboursWithConnect CNeighbours List of all members.

Public Member Functions

 CNeighboursWithG1 ()
virtual ~CNeighboursWithG1 ()
virtual void Connect ()
virtual void Close ()
void OnG1Ping ()
void OnG1Pong (CG1Neighbour *pFrom, IN_ADDR *pAddress, WORD nPort, BYTE nHops, DWORD nFiles, DWORD nVolume)

Public Attributes

CRouteCachem_pPingRoute
CPongCachem_pPongCache

Protected Member Functions

virtual void Remove (CNeighbour *pNeighbour)

Constructor & Destructor Documentation

CNeighboursWithG1::CNeighboursWithG1  ) 
 

Definition at line 41 of file NeighboursWithG1.cpp.

References m_pPingRoute, and m_pPongCache.

CNeighboursWithG1::~CNeighboursWithG1  )  [virtual]
 

Definition at line 47 of file NeighboursWithG1.cpp.

References m_pPingRoute, and m_pPongCache.


Member Function Documentation

void CNeighboursWithG1::Close  )  [virtual]
 

Reimplemented from CNeighboursBase.

Reimplemented in CNeighbours.

Definition at line 65 of file NeighboursWithG1.cpp.

References CPongCache::Clear(), CRouteCache::Clear(), CNeighboursBase::Close(), m_pPingRoute, and m_pPongCache.

Referenced by CNeighbours::Close().

void CNeighboursWithG1::Connect  )  [virtual]
 

Reimplemented from CNeighboursBase.

Reimplemented in CNeighbours, and CNeighboursWithG2.

Definition at line 56 of file NeighboursWithG1.cpp.

References CNeighboursBase::Connect(), CSettings::Gnutella, m_pPingRoute, CSettings::sGnutella::RouteCache, CRouteCache::SetDuration(), and Settings.

Referenced by CNeighboursWithG2::Connect().

void CNeighboursWithG1::OnG1Ping  ) 
 

Definition at line 82 of file NeighboursWithG1.cpp.

References CPongCache::ClearIfOld(), CNetwork::CreateID(), CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), CNeighbour::m_bPongCaching, CNeighbour::m_nProtocol, m_pPongCache, Network, PROTOCOL_G1, and CG1Neighbour::SendPing().

Referenced by CG1Neighbour::OnPing().

void CNeighboursWithG1::OnG1Pong CG1Neighbour pFrom,
IN_ADDR *  pAddress,
WORD  nPort,
BYTE  nHops,
DWORD  nFiles,
DWORD  nVolume
 

Definition at line 106 of file NeighboursWithG1.cpp.

References CPongCache::Add(), CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), CNeighbour::m_nProtocol, m_pPongCache, NULL, CG1Neighbour::OnNewPong(), and PROTOCOL_G1.

Referenced by CG1Neighbour::OnPong().

void CNeighboursWithG1::Remove CNeighbour pNeighbour  )  [protected, virtual]
 

Reimplemented from CNeighboursBase.

Definition at line 73 of file NeighboursWithG1.cpp.

References m_pPingRoute, CNeighboursBase::Remove(), and CRouteCache::Remove().

Referenced by CNeighbour::Close(), and CShakeNeighbour::OnHandshakeComplete().


Member Data Documentation

CRouteCache* CNeighboursWithG1::m_pPingRoute
 

Definition at line 43 of file NeighboursWithG1.h.

Referenced by Close(), CNeighboursWithG1(), Connect(), CG1Neighbour::OnPing(), CG1Neighbour::OnPong(), Remove(), and ~CNeighboursWithG1().

CPongCache* CNeighboursWithG1::m_pPongCache
 

Definition at line 44 of file NeighboursWithG1.h.

Referenced by Close(), CNeighboursWithG1(), OnG1Ping(), OnG1Pong(), CG1Neighbour::OnPing(), and ~CNeighboursWithG1().


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