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

CG1PacketBufferType Class Reference

#include <PacketBuffer.h>

List of all members.

Public Member Functions

 CG1PacketBufferType ()
virtual ~CG1PacketBufferType ()
BOOL Add (CG1Packet *pPacket)
CG1PacketGet (DWORD dwExpire=0, int *pnTotal=NULL, int *pnDropped=NULL)
void Clear ()

Protected Attributes

CG1Packet ** m_pBuffer
DWORD * m_pTime
int m_nHead
int m_nCount
int m_nCapacity


Constructor & Destructor Documentation

CG1PacketBufferType::CG1PacketBufferType  ) 
 

Definition at line 190 of file PacketBuffer.cpp.

References CSettings::Gnutella1, m_nCapacity, m_nCount, m_nHead, m_pBuffer, m_pTime, CSettings::sGnutella1::PacketBufferSize, and Settings.

CG1PacketBufferType::~CG1PacketBufferType  )  [virtual]
 

Definition at line 205 of file PacketBuffer.cpp.

References Clear(), m_pBuffer, and m_pTime.


Member Function Documentation

BOOL CG1PacketBufferType::Add CG1Packet pPacket  ) 
 

Definition at line 221 of file PacketBuffer.cpp.

References CPacket::AddRef(), CSettings::Gnutella1, m_nCapacity, m_nCount, m_nHead, m_pBuffer, m_pTime, CSettings::sGnutella1::PacketBufferTime, CPacket::Release(), and Settings.

Referenced by CG1PacketBuffer::Add().

void CG1PacketBufferType::Clear  ) 
 

Definition at line 308 of file PacketBuffer.cpp.

References m_nCapacity, m_nCount, m_nHead, m_pBuffer, and CPacket::Release().

Referenced by CG1PacketBuffer::Clear(), and ~CG1PacketBufferType().

CG1Packet * CG1PacketBufferType::Get DWORD  dwExpire = 0,
int *  pnTotal = NULL,
int *  pnDropped = NULL
 

Definition at line 264 of file PacketBuffer.cpp.

References CStatistics::Current, m_nCapacity, m_nCount, m_nHead, m_pBuffer, m_pTime, NULL, CPacket::Release(), and Statistics.

Referenced by CG1PacketBuffer::GetPacketToSend().


Member Data Documentation

int CG1PacketBufferType::m_nCapacity [protected]
 

Definition at line 92 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBufferType(), Clear(), and Get().

int CG1PacketBufferType::m_nCount [protected]
 

Definition at line 91 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBufferType(), Clear(), and Get().

int CG1PacketBufferType::m_nHead [protected]
 

Definition at line 90 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBufferType(), Clear(), and Get().

CG1Packet** CG1PacketBufferType::m_pBuffer [protected]
 

Definition at line 86 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBufferType(), Clear(), Get(), and ~CG1PacketBufferType().

DWORD* CG1PacketBufferType::m_pTime [protected]
 

Definition at line 87 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBufferType(), Get(), and ~CG1PacketBufferType().


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