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

CPongCache Class Reference

#include <PongCache.h>

List of all members.

Public Member Functions

 CPongCache ()
virtual ~CPongCache ()
void Clear ()
BOOL ClearIfOld ()
CPongItemAdd (CNeighbour *pNeighbour, IN_ADDR *pAddress, WORD nPort, BYTE nHops, DWORD nFiles, DWORD nVolume)
CPongItemLookup (CNeighbour *pNotFrom, BYTE nHops, CPtrList *pIgnore)
POSITION GetIterator () const
CPongItemGetNext (POSITION &pos) const

Protected Attributes

CPtrList m_pCache
DWORD m_nTime


Constructor & Destructor Documentation

CPongCache::CPongCache  ) 
 

Definition at line 38 of file PongCache.cpp.

References m_nTime.

CPongCache::~CPongCache  )  [virtual]
 

Definition at line 43 of file PongCache.cpp.

References Clear().


Member Function Documentation

CPongItem * CPongCache::Add CNeighbour pNeighbour,
IN_ADDR *  pAddress,
WORD  nPort,
BYTE  nHops,
DWORD  nFiles,
DWORD  nVolume
 

Definition at line 78 of file PongCache.cpp.

References CPongItem::m_nFiles, CPongItem::m_nHops, CPongItem::m_nPort, CPongItem::m_nVolume, CPongItem::m_pAddress, and m_pCache.

Referenced by CNeighboursWithG1::OnG1Pong().

void CPongCache::Clear  ) 
 

Definition at line 51 of file PongCache.cpp.

References m_nTime, and m_pCache.

Referenced by ClearIfOld(), CNeighboursWithG1::Close(), and ~CPongCache().

BOOL CPongCache::ClearIfOld  ) 
 

Definition at line 64 of file PongCache.cpp.

References Clear(), CSettings::Gnutella1, m_nTime, CSettings::sGnutella1::PongCache, and Settings.

Referenced by CNeighboursWithG1::OnG1Ping().

POSITION CPongCache::GetIterator  )  const
 

Definition at line 125 of file PongCache.cpp.

References m_pCache.

CPongItem * CPongCache::GetNext POSITION &  pos  )  const
 

Definition at line 130 of file PongCache.cpp.

References m_pCache.

CPongItem * CPongCache::Lookup CNeighbour pNotFrom,
BYTE  nHops,
CPtrList *  pIgnore
 

Definition at line 105 of file PongCache.cpp.

References CPongItem::m_nHops, m_pCache, CPongItem::m_pNeighbour, and NULL.

Referenced by CG1Neighbour::OnPing().


Member Data Documentation

DWORD CPongCache::m_nTime [protected]
 

Definition at line 42 of file PongCache.h.

Referenced by Clear(), ClearIfOld(), and CPongCache().

CPtrList CPongCache::m_pCache [protected]
 

Definition at line 41 of file PongCache.h.

Referenced by Add(), Clear(), GetIterator(), GetNext(), and Lookup().


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