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

CG1PacketBuffer Class Reference

#include <PacketBuffer.h>

List of all members.

Public Member Functions

 CG1PacketBuffer (CBuffer *pBuffer)
virtual ~CG1PacketBuffer ()
void Add (CG1Packet *pPacket, BOOL bBuffered=TRUE)
void Clear ()
CG1PacketGetPacketToSend (DWORD dwExpire=0)

Public Attributes

int m_nTotal
int m_nDropped

Protected Attributes

CBufferm_pBuffer
int m_nCycle
int m_nIterate
CG1PacketBufferTypem_pType


Constructor & Destructor Documentation

CG1PacketBuffer::CG1PacketBuffer CBuffer pBuffer  ) 
 

Definition at line 47 of file PacketBuffer.cpp.

References G1_PACKTYPE_MAX, m_nCycle, m_nDropped, m_nIterate, m_nTotal, m_pBuffer, and m_pType.

CG1PacketBuffer::~CG1PacketBuffer  )  [virtual]
 

Definition at line 63 of file PacketBuffer.cpp.

References Clear(), and m_pType.


Member Function Documentation

void CG1PacketBuffer::Add CG1Packet pPacket,
BOOL  bBuffered = TRUE
 

Definition at line 76 of file PacketBuffer.cpp.

References CG1PacketBufferType::Add(), CStatistics::Current, m_nDropped, m_nTotal, CG1Packet::m_nTypeIndex, m_pBuffer, m_pType, Statistics, and CG1Packet::ToBuffer().

Referenced by CG1Neighbour::Send().

void CG1PacketBuffer::Clear  ) 
 

Definition at line 173 of file PacketBuffer.cpp.

References CG1PacketBufferType::Clear(), G1_PACKTYPE_MAX, m_nTotal, and m_pType.

Referenced by ~CG1PacketBuffer().

CG1Packet * CG1PacketBuffer::GetPacketToSend DWORD  dwExpire = 0  ) 
 

Definition at line 113 of file PacketBuffer.cpp.

References G1_PACKTYPE_MAX, CG1PacketBufferType::Get(), m_nCycle, m_nDropped, m_nIterate, m_nTotal, m_pType, and NULL.

Referenced by CG1Neighbour::OnWrite().


Member Data Documentation

int CG1PacketBuffer::m_nCycle [protected]
 

Definition at line 59 of file PacketBuffer.h.

Referenced by CG1PacketBuffer(), and GetPacketToSend().

int CG1PacketBuffer::m_nDropped
 

Definition at line 51 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBuffer(), GetPacketToSend(), and CG1Neighbour::OnWrite().

int CG1PacketBuffer::m_nIterate [protected]
 

Definition at line 60 of file PacketBuffer.h.

Referenced by CG1PacketBuffer(), and GetPacketToSend().

int CG1PacketBuffer::m_nTotal
 

Definition at line 50 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBuffer(), Clear(), GetPacketToSend(), and CG1Neighbour::OnWrite().

CBuffer* CG1PacketBuffer::m_pBuffer [protected]
 

Definition at line 56 of file PacketBuffer.h.

Referenced by Add(), and CG1PacketBuffer().

CG1PacketBufferType* CG1PacketBuffer::m_pType [protected]
 

Definition at line 61 of file PacketBuffer.h.

Referenced by Add(), CG1PacketBuffer(), Clear(), GetPacketToSend(), and ~CG1PacketBuffer().


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