#include <G1Packet.h>
Inheritance diagram for CG1Packet:
Public Member Functions | |
BOOL | Hop () |
void | CacheHash () |
virtual BOOL | GetRazaHash (SHA1 *pHash, DWORD nLength=0) const |
virtual LPCTSTR | GetType () const |
CString | GetGUID () const |
virtual void | ToBuffer (CBuffer *pBuffer) const |
virtual void | Debug (LPCTSTR pszReason) const |
virtual void | Delete () |
Static Public Member Functions | |
static int | GnutellaTypeToIndex (BYTE nType) |
static CG1Packet * | New (int nType=0, DWORD nTTL=0, GGUID *pGUID=NULL) |
static CG1Packet * | New (GNUTELLAPACKET *pSource) |
Public Attributes | |
GGUID | m_pGUID |
BYTE | m_nType |
BYTE | m_nTTL |
BYTE | m_nHops |
int | m_nTypeIndex |
DWORD | m_nHash |
Static Public Attributes | |
static LPCTSTR | m_pszPackets [9] |
Protected Member Functions | |
CG1Packet () | |
virtual | ~CG1Packet () |
Static Protected Attributes | |
static CG1PacketPool | POOL |
Friends | |
class | CG1Packet::CG1PacketPool |
Classes | |
class | CG1PacketPool |
|
Definition at line 48 of file G1Packet.cpp. References m_nHash, m_nHops, m_nTTL, m_nType, and m_nTypeIndex. |
|
Definition at line 62 of file G1Packet.cpp. |
|
Definition at line 151 of file G1Packet.cpp. References m_nHash, CPacket::m_nLength, and CPacket::m_pBuffer. |
|
Reimplemented from CPacket. Definition at line 248 of file G1Packet.cpp. References CPacket::Debug(), GetType(), m_nHops, m_nTTL, and CPacket::ToASCII(). |
|
Implements CPacket. Definition at line 148 of file G1Packet.h. References CPacketPool::Delete(), and POOL. |
|
Definition at line 209 of file G1Packet.cpp. |
|
Reimplemented from CPacket. Definition at line 173 of file G1Packet.cpp. References CSHA::Add(), CSHA::Finish(), CSHA::GetHash(), CPacket::m_nLength, m_nType, CPacket::m_pBuffer, and m_pGUID. |
|
Reimplemented from CPacket. Definition at line 201 of file G1Packet.cpp. References m_nTypeIndex, and m_pszPackets. Referenced by Debug(). |
|
Definition at line 111 of file G1Packet.cpp. References G1_PACKET_BYE, G1_PACKET_HIT, G1_PACKET_PING, G1_PACKET_PONG, G1_PACKET_PUSH, G1_PACKET_QUERY, G1_PACKET_QUERY_ROUTE, G1_PACKET_VENDOR, G1_PACKET_VENDOR_APP, G1_PACKTYPE_BYE, G1_PACKTYPE_HIT, G1_PACKTYPE_PING, G1_PACKTYPE_PONG, G1_PACKTYPE_PUSH, G1_PACKTYPE_QUERY, G1_PACKTYPE_QUERY_ROUTE, G1_PACKTYPE_UNKNOWN, and G1_PACKTYPE_VENDOR. Referenced by New(). |
|
Definition at line 134 of file G1Packet.cpp. References m_nHops, and m_nTTL. Referenced by CG1Neighbour::OnPing(), CG1Neighbour::OnPush(), and CNetwork::RouteHits(). |
|
Definition at line 124 of file G1Packet.h. References GnutellaTypeToIndex(), GNUTELLAPACKET::m_nHops, m_nHops, GNUTELLAPACKET::m_nLength, GNUTELLAPACKET::m_nTTL, m_nTTL, GNUTELLAPACKET::m_nType, m_nType, m_nTypeIndex, GNUTELLAPACKET::m_pGUID, m_pGUID, CPacketPool::New(), POOL, and CPacket::Write(). |
|
|
Implements CPacket. Definition at line 228 of file G1Packet.cpp. References CBuffer::Add(), m_nHops, GNUTELLAPACKET::m_nHops, CPacket::m_nLength, GNUTELLAPACKET::m_nLength, m_nTTL, GNUTELLAPACKET::m_nTTL, m_nType, GNUTELLAPACKET::m_nType, CPacket::m_pBuffer, m_pGUID, and GNUTELLAPACKET::m_pGUID. Referenced by CG1PacketBuffer::Add(), and CG1Neighbour::OnWrite(). |
|
Definition at line 155 of file G1Packet.h. |
|
Definition at line 70 of file G1Packet.h. Referenced by CacheHash(), CG1Packet(), and New(). |
|
Definition at line 66 of file G1Packet.h. Referenced by CG1Packet(), Debug(), Hop(), CG2Packet::New(), New(), CQueryHashTable::OnPacket(), CG1Neighbour::OnPacket(), CG1Neighbour::OnPing(), CG1Neighbour::OnQuery(), CG1Neighbour::SendQuery(), ToBuffer(), and CPongItem::ToPacket(). |
|
Definition at line 65 of file G1Packet.h. Referenced by CG1Packet(), Debug(), Hop(), CG2Packet::New(), New(), CQueryHashTable::OnPacket(), CG1Neighbour::OnPacket(), CG1Neighbour::OnPing(), CG1Neighbour::Send(), and ToBuffer(). |
|
Definition at line 64 of file G1Packet.h. Referenced by CG1Packet(), GetRazaHash(), CG2Packet::New(), New(), CHostBrowser::OnPacket(), CG1Neighbour::OnPacket(), and ToBuffer(). |
|
Definition at line 69 of file G1Packet.h. Referenced by CG1PacketBuffer::Add(), CG1Packet(), GetType(), and New(). |
|
Definition at line 63 of file G1Packet.h. Referenced by GetGUID(), GetRazaHash(), CG2Packet::New(), New(), CG1Neighbour::OnPing(), CG1Neighbour::OnQuery(), and ToBuffer(). |
|
Initial value: { _T("Unknown"), _T("Ping"), _T("Pong"), _T("Bye"), _T("QRP"), _T("Vendor"), _T("Push"), _T("Query"), _T("Hit") } Definition at line 193 of file G1Packet.cpp. Referenced by GetType(), and CPacketWnd::OnContextMenu(). |
|
Definition at line 42 of file G1Packet.cpp. |