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

CEDTag Class Reference

#include <EDPacket.h>

List of all members.

Public Member Functions

 CEDTag ()
 CEDTag (BYTE nKey)
 CEDTag (BYTE nKey, DWORD nValue)
 CEDTag (BYTE nKey, LPCTSTR pszValue)
 CEDTag (LPCTSTR pszKey)
 CEDTag (LPCTSTR pszKey, DWORD nValue)
 CEDTag (LPCTSTR pszKey, LPCTSTR pszValue)
 ~CEDTag ()
void Clear ()
void Write (CEDPacket *pPacket, DWORD ServerFlags=0)
BOOL Read (CEDPacket *pPacket, DWORD ServerFlags=0)
BOOL Read (CFile *pFile)
BOOL Check (BYTE nKey, BYTE nType) const

Public Attributes

BYTE m_nType
CString m_sKey
BYTE m_nKey
CString m_sValue
DWORD m_nValue


Constructor & Destructor Documentation

CEDTag::CEDTag  ) 
 

Definition at line 275 of file EDPacket.cpp.

References ED2K_TAG_NULL, m_nKey, and m_nType.

CEDTag::CEDTag BYTE  nKey  ) 
 

Definition at line 281 of file EDPacket.cpp.

References ED2K_TAG_HASH, m_nKey, and m_nType.

CEDTag::CEDTag BYTE  nKey,
DWORD  nValue
 

Definition at line 287 of file EDPacket.cpp.

References ED2K_TAG_INT, m_nKey, m_nType, and m_nValue.

CEDTag::CEDTag BYTE  nKey,
LPCTSTR  pszValue
 

Definition at line 294 of file EDPacket.cpp.

References ED2K_TAG_STRING, m_nKey, m_nType, and m_sValue.

CEDTag::CEDTag LPCTSTR  pszKey  ) 
 

Definition at line 301 of file EDPacket.cpp.

References ED2K_TAG_HASH, m_nKey, m_nType, and m_sKey.

CEDTag::CEDTag LPCTSTR  pszKey,
DWORD  nValue
 

Definition at line 308 of file EDPacket.cpp.

References ED2K_TAG_INT, m_nKey, m_nType, m_nValue, and m_sKey.

CEDTag::CEDTag LPCTSTR  pszKey,
LPCTSTR  pszValue
 

Definition at line 316 of file EDPacket.cpp.

References ED2K_TAG_STRING, m_nKey, m_nType, m_sKey, and m_sValue.

CEDTag::~CEDTag  )  [inline]
 

Definition at line 257 of file EDPacket.h.


Member Function Documentation

BOOL CEDTag::Check BYTE  nKey,
BYTE  nType
const [inline]
 

Definition at line 276 of file EDPacket.h.

References CEDPacket::m_nType.

Referenced by CEDPartImporter::ImportFile(), and CHostCacheList::ImportMET().

void CEDTag::Clear  ) 
 

Definition at line 327 of file EDPacket.cpp.

References ED2K_TAG_NULL, m_nKey, m_nType, m_nValue, m_sKey, and m_sValue.

Referenced by Read().

BOOL CEDTag::Read CFile *  pFile  ) 
 

Definition at line 519 of file EDPacket.cpp.

References Clear(), ED2K_TAG_INT, ED2K_TAG_STRING, m_nKey, m_nType, m_nValue, m_sKey, m_sValue, and NULL.

BOOL CEDTag::Read CEDPacket pPacket,
DWORD  ServerFlags = 0
 

Definition at line 424 of file EDPacket.cpp.

References Clear(), ED2K_SERVER_TCP_UNICODE, ED2K_TAG_BLOB, ED2K_TAG_FLOAT, ED2K_TAG_INT, ED2K_TAG_SHORTSTRING, ED2K_TAG_STRING, ED2K_TAG_UINT16, ED2K_TAG_UINT8, m_nKey, m_nType, m_nValue, m_sKey, m_sValue, CShareazaApp::Message(), MSG_DEBUG, and theApp.

Referenced by CEDPartImporter::ImportFile(), CHostCacheList::ImportMET(), CEDClient::OnEmuleInfo(), CEDClient::OnHello(), CEDNeighbour::OnServerIdent(), and CQueryHit::ReadEDPacket().

void CEDTag::Write CEDPacket pPacket,
DWORD  ServerFlags = 0
 

Definition at line 339 of file EDPacket.cpp.

References ED2K_SERVER_TCP_SMALLTAGS, ED2K_SERVER_TCP_UNICODE, ED2K_TAG_INT, ED2K_TAG_SHORTSTRING, ED2K_TAG_STRING, ED2K_TAG_UINT16, ED2K_TAG_UINT8, CPacket::GetStringLen(), CPacket::GetStringLenUTF8(), m_nKey, CPacket::m_nLength, m_nType, m_nValue, CPacket::m_pBuffer, m_sKey, m_sValue, CPacket::WriteByte(), CEDPacket::WriteEDString(), CPacket::WriteLongLE(), CPacket::WriteShortLE(), CPacket::WriteString(), and CPacket::WriteStringUTF8().


Member Data Documentation

BYTE CEDTag::m_nKey
 

Definition at line 263 of file EDPacket.h.

Referenced by CEDTag(), Clear(), CEDClient::OnEmuleInfo(), CEDClient::OnHello(), CEDNeighbour::OnServerIdent(), Read(), CQueryHit::ReadEDPacket(), and Write().

BYTE CEDTag::m_nType
 

Definition at line 257 of file EDPacket.h.

Referenced by CEDTag(), Clear(), CEDPartImporter::ImportFile(), CEDClient::OnEmuleInfo(), CEDClient::OnHello(), Read(), CQueryHit::ReadEDPacket(), and Write().

DWORD CEDTag::m_nValue
 

Definition at line 265 of file EDPacket.h.

Referenced by CEDTag(), Clear(), CEDPartImporter::ImportFile(), CHostCacheList::ImportMET(), CEDClient::OnEmuleInfo(), CEDClient::OnHello(), CEDNeighbour::OnServerIdent(), Read(), CQueryHit::ReadEDPacket(), and Write().

CString CEDTag::m_sKey
 

Definition at line 262 of file EDPacket.h.

Referenced by CEDTag(), Clear(), CEDPartImporter::ImportFile(), CEDClient::OnHello(), Read(), CQueryHit::ReadEDPacket(), and Write().

CString CEDTag::m_sValue
 

Definition at line 264 of file EDPacket.h.

Referenced by CEDTag(), Clear(), CEDPartImporter::ImportFile(), CHostCacheList::ImportMET(), CEDClient::OnHello(), CEDNeighbour::OnServerIdent(), Read(), CQueryHit::ReadEDPacket(), and Write().


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