#include <EDPacket.h>
Inheritance diagram for CEDPacket:
Public Member Functions | |
CString | ReadEDString (DWORD ServerFlags) |
void | WriteEDString (LPCTSTR psz, DWORD ServerFlags) |
CString | ReadEDString (BOOL bUnicode) |
void | WriteEDString (LPCTSTR psz, BOOL bUnicode) |
CString | ReadLongEDString (BOOL bUnicode) |
void | WriteLongEDString (LPCTSTR psz, BOOL bUnicode) |
BOOL | Deflate () |
BOOL | InflateOrRelease (BYTE nEdProtocol) |
virtual void | ToBuffer (CBuffer *pBuffer) const |
virtual void | ToBufferUDP (CBuffer *pBuffer) const |
virtual LPCTSTR | GetType () const |
virtual void | Debug (LPCTSTR pszReason) const |
virtual void | Delete () |
Static Public Member Functions | |
static CEDPacket * | ReadBuffer (CBuffer *pBuffer, BYTE nEdProtocol) |
static BOOL | IsLowID (DWORD nID) |
static CEDPacket * | New (BYTE nType, BYTE nProtocol=ED2K_PROTOCOL_EDONKEY) |
static CEDPacket * | New (ED2K_TCP_HEADER *pHeader) |
static CEDPacket * | New (ED2K_UDP_HEADER *pHeader, DWORD nLength) |
Public Attributes | |
BYTE | m_nEdProtocol |
BYTE | m_nType |
Protected Member Functions | |
CEDPacket () | |
virtual | ~CEDPacket () |
Static Protected Attributes | |
static ED2K_PACKET_DESC | m_pszTypes [] |
static CEDPacketPool | POOL |
Friends | |
class | CEDPacket::CEDPacketPool |
Classes | |
class | CEDPacketPool |
|
Definition at line 41 of file EDPacket.cpp. |
|
Definition at line 45 of file EDPacket.cpp. |
|
Reimplemented from CPacket. Definition at line 257 of file EDPacket.cpp. References CPacket::Debug(), ED2K_C2C_COMPRESSEDPART, ED2K_C2C_HASHSETANSWER, ED2K_C2C_SENDINGPART, GetType(), m_nType, and CPacket::ToASCII(). |
|
Definition at line 173 of file EDPacket.cpp. References CZLib::Compress(), ED2K_PROTOCOL_EDONKEY, ED2K_PROTOCOL_EMULE, ED2K_PROTOCOL_PACKED, m_nEdProtocol, CPacket::m_nLength, CPacket::m_pBuffer, and NULL. Referenced by CEDNeighbour::SendSharedDownload(), and CEDNeighbour::SendSharedFiles(). |
|
Implements CPacket. Definition at line 148 of file EDPacket.h. References CPacketPool::Delete(), and POOL. |
|
Reimplemented from CPacket. Definition at line 241 of file EDPacket.cpp. References m_nType. Referenced by Debug(). |
|
Definition at line 204 of file EDPacket.cpp. References CZLib::Decompress(), ED2K_PROTOCOL_PACKED, CPacket::m_nBuffer, m_nEdProtocol, CPacket::m_nLength, CPacket::m_pBuffer, NULL, and CPacket::Release(). Referenced by CDatagrams::OnDatagram(), and ReadBuffer(). |
|
|
Definition at line 139 of file EDPacket.h. References m_nEdProtocol, m_nType, CPacketPool::New(), ED2K_UDP_HEADER::nProtocol, ED2K_UDP_HEADER::nType, POOL, and CPacket::Write(). |
|
Definition at line 130 of file EDPacket.h. References m_nEdProtocol, m_nType, CPacketPool::New(), ED2K_TCP_HEADER::nLength, ED2K_TCP_HEADER::nProtocol, ED2K_TCP_HEADER::nType, POOL, and CPacket::Write(). |
|
|
Definition at line 156 of file EDPacket.cpp. References ED2K_PROTOCOL_EDONKEY, ED2K_PROTOCOL_EMULE, ED2K_PROTOCOL_PACKED, InflateOrRelease(), New(), and NULL. Referenced by CEDNeighbour::OnRead(), CEDClient::OnRead(), CChatSession::ReadPacketsED2K(), and CChatSession::SendPacketsED2K(). |
|
Definition at line 79 of file EDPacket.cpp. References CPacket::ReadShortLE(), CPacket::ReadString(), and CPacket::ReadStringUTF8(). |
|
Definition at line 52 of file EDPacket.cpp. References ED2K_SERVER_TCP_UNICODE, CPacket::ReadShortLE(), CPacket::ReadString(), and CPacket::ReadStringUTF8(). Referenced by CEDNeighbour::OnServerMessage(). |
|
Definition at line 107 of file EDPacket.cpp. References CPacket::ReadLongLE(), CPacket::ReadString(), and CPacket::ReadStringUTF8(). |
|
Implements CPacket. Definition at line 137 of file EDPacket.cpp. References CBuffer::Add(), m_nEdProtocol, CPacket::m_nLength, m_nType, CPacket::m_pBuffer, ED2K_TCP_HEADER::nLength, ED2K_TCP_HEADER::nProtocol, and ED2K_TCP_HEADER::nType. Referenced by CChatSession::SendPrivateMessage(). |
|
Definition at line 147 of file EDPacket.cpp. References m_nEdProtocol, CPacket::m_nLength, m_nType, CPacket::m_pBuffer, ED2K_UDP_HEADER::nProtocol, and ED2K_UDP_HEADER::nType. |
|
Definition at line 88 of file EDPacket.cpp. References CPacket::GetStringLen(), CPacket::GetStringLenUTF8(), CPacket::WriteShortLE(), CPacket::WriteString(), and CPacket::WriteStringUTF8(). |
|
Definition at line 61 of file EDPacket.cpp. References ED2K_SERVER_TCP_UNICODE, CPacket::GetStringLen(), CPacket::GetStringLenUTF8(), CPacket::WriteShortLE(), CPacket::WriteString(), and CPacket::WriteStringUTF8(). Referenced by CEDClient::OnFileRequest(), CQuerySearch::ToEDPacket(), and CEDTag::Write(). |
|
Definition at line 116 of file EDPacket.cpp. References CPacket::GetStringLen(), CPacket::GetStringLenUTF8(), CPacket::WriteLongLE(), CPacket::WriteString(), and CPacket::WriteStringUTF8(). Referenced by CEDClient::SendCommentsPacket(). |
|
Definition at line 153 of file EDPacket.h. |
|
Definition at line 78 of file EDPacket.h. Referenced by Deflate(), InflateOrRelease(), New(), CChatSession::ReadPacketsED2K(), CChatSession::SendPrivateMessage(), ToBuffer(), and ToBufferUDP(). |
|
|
Definition at line 585 of file EDPacket.cpp. |
|
Definition at line 35 of file EDPacket.cpp. |