#include <G2Packet.h>
Inheritance diagram for CG2Packet:
Public Member Functions | |
void | WritePacket (CG2Packet *pPacket) |
void | WritePacket (LPCSTR pszType, DWORD nLength, BOOL bCompound=FALSE) |
BOOL | ReadPacket (LPSTR pszType, DWORD &nLength, BOOL *pbCompound=NULL) |
BOOL | SkipCompound () |
BOOL | SkipCompound (DWORD &nLength, DWORD nRemaining=0) |
BOOL | GetTo (GGUID *pGUID) |
BOOL | SeekToWrapped () |
virtual void | Reset () |
CG2Packet * | Clone () const |
virtual CString | ReadString (DWORD nMaximum=0xFFFFFFFF) |
virtual void | WriteString (LPCTSTR pszString, BOOL bNull=TRUE) |
virtual int | GetStringLen (LPCTSTR pszString) const |
virtual void | ToBuffer (CBuffer *pBuffer) const |
virtual void | Debug (LPCTSTR pszReason) const |
virtual void | WriteString (LPCSTR pszString, BOOL bNull=TRUE) |
BOOL | IsType (LPCSTR pszType) const |
virtual LPCTSTR | GetType () const |
virtual void | Delete () |
Static Public Member Functions | |
static CG2Packet * | ReadBuffer (CBuffer *pBuffer) |
static CG2Packet * | New (LPCSTR pszType=NULL, BOOL bCompound=FALSE) |
static CG2Packet * | New (BYTE *pSource) |
static CG2Packet * | New (LPCSTR pszType, CG1Packet *pWrap, int nMinTTL=255) |
Public Attributes | |
CHAR | m_sType [9] |
BOOL | m_bCompound |
CString | m_sTypeCache |
Protected Member Functions | |
CG2Packet () | |
virtual | ~CG2Packet () |
Static Protected Attributes | |
static CG2PacketPool | POOL |
Friends | |
class | CG2Packet::CG2PacketPool |
Classes | |
class | CG2PacketPool |
|
Definition at line 41 of file G2Packet.cpp. References CPacket::m_bBigEndian, m_bCompound, and m_sType. |
|
Definition at line 48 of file G2Packet.cpp. |
|
Definition at line 130 of file G2Packet.cpp. References m_bCompound, CPacket::m_nLength, CPacket::m_pBuffer, m_sType, New(), and CPacket::Write(). Referenced by CNeighboursWithRouting::RouteQuery(). |
|
Reimplemented from CPacket. Definition at line 504 of file G2Packet.cpp. References CPacket::Debug(), GetType(), and CPacket::ToASCII(). Referenced by CDatagrams::OnHit(), CG2Neighbour::OnPush(), CDatagrams::OnPush(), and CDatagrams::Send(). |
|
Implements CPacket. Definition at line 115 of file G2Packet.h. References CPacketPool::Delete(), and POOL. |
|
Reimplemented from CPacket. Definition at line 390 of file G2Packet.cpp. References NULL. Referenced by CLocalSearch::AddHit(), CLocalSearch::AddHitG2(), CLocalSearch::AlbumToPacket(), CGProfile::CreateAvatar(), CLocalSearch::CreatePacketG2(), CLocalSearch::FolderToPacket(), CDatagrams::OnCrawlRequest(), CG2Neighbour::OnProfileChallenge(), CChatSession::OnProfileChallenge(), CUploadTransferHTTP::RequestHostBrowse(), CChatSession::SendPrivateMessage(), and CQuerySearch::ToG2Packet(). |
|
Definition at line 294 of file G2Packet.cpp. References CPacket::GetRemaining(), m_bCompound, CPacket::m_nPosition, and CPacket::m_pBuffer. |
|
Reimplemented from CPacket. Definition at line 75 of file G2Packet.h. References m_sType, and m_sTypeCache. Referenced by Debug(). |
|
Definition at line 70 of file G2Packet.h. References m_sType. Referenced by CChatSession::OnPacket(), CG2Neighbour::OnQuery(), CNetwork::RouteHits(), and CNeighboursWithRouting::RouteQuery(). |
|
Definition at line 109 of file G2Packet.cpp. References CG1Packet::m_nHops, GNUTELLAPACKET::m_nHops, CPacket::m_nLength, GNUTELLAPACKET::m_nLength, CG1Packet::m_nTTL, GNUTELLAPACKET::m_nTTL, CG1Packet::m_nType, GNUTELLAPACKET::m_nType, CPacket::m_pBuffer, CG1Packet::m_pGUID, GNUTELLAPACKET::m_pGUID, New(), and CPacket::Write(). |
|
Definition at line 67 of file G2Packet.cpp. References G2_FLAG_BIG_ENDIAN, G2_FLAG_COMPOUND, CPacket::m_bBigEndian, m_bCompound, m_sType, New(), and CPacket::Write(). |
|
|
Definition at line 454 of file G2Packet.cpp. References G2_FLAG_BIG_ENDIAN, New(), and NULL. Referenced by CHostBrowser::StreamPacketsG2(), and CDatagramIn::ToG2Packet(). |
|
|
Reimplemented from CPacket. Definition at line 328 of file G2Packet.cpp. References CPacket::m_nLength, CPacket::m_nPosition, CPacket::m_pBuffer, and NULL. Referenced by CChatSession::OnChatAnswer(), CChatSession::OnChatMessage(), CG2Neighbour::OnKHL(), CCrawlNode::OnNode(), CG2Neighbour::OnProfileDelivery(), CChatSession::OnProfileDelivery(), CBrowseTreeCtrl::OnTreePacket(), and CQuerySearch::ReadG2Packet(). |
|
Reimplemented from CPacket. Definition at line 55 of file G2Packet.cpp. References CPacket::m_bBigEndian, m_bCompound, m_sType, and CPacket::Reset(). |
|
Definition at line 314 of file G2Packet.cpp. References CPacket::GetRemaining(), GNUTELLAPACKET::m_nLength, CPacket::m_nPosition, CPacket::m_pBuffer, and SkipCompound(). Referenced by CNetwork::RouteHits(), and CNeighboursWithRouting::RouteQuery(). |
|
Definition at line 248 of file G2Packet.cpp. References CPacket::m_bBigEndian, CPacket::m_nPosition, CPacket::Read(), and CPacket::ReadByte(). |
|
Definition at line 237 of file G2Packet.cpp. References m_bCompound, and CPacket::m_nLength. Referenced by CQueryHashTable::OnPacket(), CG2Neighbour::OnPush(), CDatagrams::OnPush(), ReadPacket(), and SeekToWrapped(). |
|
Implements CPacket. Definition at line 411 of file G2Packet.cpp. References CBuffer::Add(), CBuffer::EnsureBuffer(), G2_FLAG_BIG_ENDIAN, G2_FLAG_COMPOUND, CPacket::m_bBigEndian, m_bCompound, CBuffer::m_nLength, CPacket::m_nLength, CPacket::m_pBuffer, CBuffer::m_pBuffer, and m_sType. Referenced by CDatagramOut::Create(), CG2Neighbour::OnWrite(), CUploadTransferHTTP::RequestHostBrowse(), and CChatSession::Send(). |
|
Definition at line 150 of file G2Packet.cpp. References G2_FLAG_BIG_ENDIAN, G2_FLAG_COMPOUND, CPacket::m_bBigEndian, m_bCompound, CPacket::Write(), and CPacket::WriteByte(). |
|
|
Definition at line 379 of file G2Packet.cpp. References NULL, CPacket::Write(), and CPacket::WriteByte(). |
|
|
Definition at line 120 of file G2Packet.h. |
|
|
Definition at line 41 of file G2Packet.h. Referenced by CG2Packet(), Clone(), GetType(), IsType(), New(), Reset(), and ToBuffer(). |
|
Definition at line 44 of file G2Packet.h. |
|
Definition at line 35 of file G2Packet.cpp. |