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

CDatagramOut Class Reference

#include <DatagramPart.h>

List of all members.

Public Member Functions

 CDatagramOut ()
virtual ~CDatagramOut ()
void Create (SOCKADDR_IN *pHost, CG2Packet *pPacket, WORD nSequence, CBuffer *pBuffer, BOOL bAck)
BOOL GetPacket (DWORD tNow, BYTE **ppPacket, DWORD *pnPacket, BOOL bResend)
BOOL Acknowledge (BYTE nPart)

Public Attributes

CDatagramOutm_pNextHash
CDatagramOut ** m_pPrevHash
CDatagramOutm_pNextTime
CDatagramOutm_pPrevTime
SOCKADDR_IN m_pHost
WORD m_nSequence
CBufferm_pBuffer
LPVOID m_pToken
BOOL m_bCompressed
DWORD m_nPacket
BYTE m_nCount
BYTE m_nAcked
DWORD * m_pLocked
BYTE m_nLocked
DWORD m_tSent


Constructor & Destructor Documentation

CDatagramOut::CDatagramOut  ) 
 

Definition at line 40 of file DatagramPart.cpp.

References m_nLocked, m_pBuffer, m_pLocked, and NULL.

CDatagramOut::~CDatagramOut  )  [virtual]
 

Definition at line 47 of file DatagramPart.cpp.

References m_pLocked.


Member Function Documentation

BOOL CDatagramOut::Acknowledge BYTE  nPart  ) 
 

Definition at line 140 of file DatagramPart.cpp.

References m_nAcked, and m_pLocked.

void CDatagramOut::Create SOCKADDR_IN *  pHost,
CG2Packet pPacket,
WORD  nSequence,
CBuffer pBuffer,
BOOL  bAck
 

Definition at line 55 of file DatagramPart.cpp.

References CBuffer::Deflate(), CSettings::Gnutella2, CBuffer::Insert(), m_bCompressed, m_nAcked, m_nCount, CBuffer::m_nLength, m_nLocked, m_nPacket, m_nSequence, m_pBuffer, m_pHost, m_pLocked, m_tSent, SGP_HEADER::nCount, SGP_HEADER::nFlags, SGP_HEADER::nPart, SGP_HEADER::nSequence, NULL, Settings, SGP_ACKNOWLEDGE, SGP_DEFLATE, SGP_TAG_2, SGP_HEADER::szTag, CG2Packet::ToBuffer(), and CSettings::sGnutella2::UdpMTU.

Referenced by CDatagrams::Send().

BOOL CDatagramOut::GetPacket DWORD  tNow,
BYTE **  ppPacket,
DWORD *  pnPacket,
BOOL  bResend
 

Definition at line 105 of file DatagramPart.cpp.

References CSettings::Gnutella2, m_nCount, CBuffer::m_nLength, m_nPacket, CBuffer::m_pBuffer, m_pBuffer, m_pLocked, NULL, Settings, and CSettings::sGnutella2::UdpOutResend.

Referenced by CDatagrams::TryWrite().


Member Data Documentation

BOOL CDatagramOut::m_bCompressed
 

Definition at line 49 of file DatagramPart.h.

Referenced by Create().

BYTE CDatagramOut::m_nAcked
 

Definition at line 52 of file DatagramPart.h.

Referenced by Acknowledge(), and Create().

BYTE CDatagramOut::m_nCount
 

Definition at line 51 of file DatagramPart.h.

Referenced by Create(), GetPacket(), and CDatagrams::Send().

BYTE CDatagramOut::m_nLocked
 

Definition at line 54 of file DatagramPart.h.

Referenced by CDatagramOut(), and Create().

DWORD CDatagramOut::m_nPacket
 

Definition at line 50 of file DatagramPart.h.

Referenced by Create(), and GetPacket().

WORD CDatagramOut::m_nSequence
 

Definition at line 46 of file DatagramPart.h.

Referenced by Create(), CDatagrams::Send(), and CDatagrams::TryWrite().

CBuffer* CDatagramOut::m_pBuffer
 

Definition at line 47 of file DatagramPart.h.

Referenced by CDatagramOut(), Create(), GetPacket(), and CDatagrams::Remove().

SOCKADDR_IN CDatagramOut::m_pHost
 

Definition at line 45 of file DatagramPart.h.

Referenced by Create(), CDatagrams::Send(), and CDatagrams::TryWrite().

DWORD* CDatagramOut::m_pLocked
 

Definition at line 53 of file DatagramPart.h.

Referenced by Acknowledge(), CDatagramOut(), Create(), GetPacket(), and ~CDatagramOut().

CDatagramOut* CDatagramOut::m_pNextHash
 

Definition at line 40 of file DatagramPart.h.

Referenced by CDatagrams::Listen(), CDatagrams::OnAcknowledgeSGP(), CDatagrams::Remove(), and CDatagrams::Send().

CDatagramOut* CDatagramOut::m_pNextTime
 

Definition at line 42 of file DatagramPart.h.

Referenced by CDatagrams::Remove(), and CDatagrams::Send().

CDatagramOut** CDatagramOut::m_pPrevHash
 

Definition at line 41 of file DatagramPart.h.

Referenced by CDatagrams::Remove(), and CDatagrams::Send().

CDatagramOut* CDatagramOut::m_pPrevTime
 

Definition at line 43 of file DatagramPart.h.

Referenced by CDatagrams::Remove(), CDatagrams::Send(), and CDatagrams::TryWrite().

LPVOID CDatagramOut::m_pToken
 

Definition at line 48 of file DatagramPart.h.

Referenced by CDatagrams::Send().

DWORD CDatagramOut::m_tSent
 

Definition at line 55 of file DatagramPart.h.

Referenced by Create().


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