#include <BENode.h>
Public Types | |
enum | { beNull, beString, beInt, beList, beDict } |
Public Member Functions | |
CBENode () | |
~CBENode () | |
void | Clear () |
CBENode * | Add (const LPBYTE pKey, int nKey) |
CBENode * | GetNode (LPCSTR pszKey) const |
CBENode * | GetNode (const LPBYTE pKey, int nKey) const |
void | GetSHA1 (SHA1 *pSHA1) const |
CString | GetStringFromSubNode (LPCSTR pszKey, UINT nEncoding, BOOL *pEncodingError) |
CString | GetStringFromSubNode (int nItem, UINT nEncoding, BOOL *pEncodingError) |
void | Encode (CBuffer *pBuffer) const |
bool | IsType (int nType) const |
QWORD | GetInt () const |
void | SetInt (QWORD nValue) |
CString | GetString () const |
CString | DecodeString (UINT nCodePage) const |
BOOL | IsValid (LPCTSTR psz) const |
void | SetString (LPCSTR psz) |
void | SetString (LPCWSTR psz) |
void | SetString (LPCVOID pString, DWORD nLength, BOOL bNull=FALSE) |
CBENode * | Add (LPCSTR pszKey=NULL) |
int | GetCount () const |
CBENode * | GetNode (int nItem) const |
Static Public Member Functions | |
static CBENode * | Decode (CBuffer *pBuffer) |
Public Attributes | |
int | m_nType |
LPVOID | m_pValue |
QWORD | m_nValue |
Private Member Functions | |
void | Decode (LPBYTE &pInput, DWORD &nInput) |
Static Private Member Functions | |
static int | DecodeLen (LPBYTE &pInput, DWORD &nInput) |
|
|
|
Definition at line 39 of file BENode.cpp. |
|
Definition at line 46 of file BENode.cpp. |
|
|
|
Definition at line 88 of file BENode.cpp. References beDict, beList, beNull, CBENode(), m_nType, m_nValue, m_pValue, and NULL. Referenced by Add(), Decode(), CBTClient::OnSourceRequest(), and CBTClient::SendBeHandshake(). |
|
Definition at line 54 of file BENode.cpp. References beDict, beList, beNull, beString, m_nType, m_nValue, m_pValue, and NULL. Referenced by SetInt(), SetString(), and ~CBENode(). |
|
Definition at line 376 of file BENode.cpp. References Add(), beDict, beInt, beList, beNull, beString, DecodeLen(), INC, m_nType, m_nValue, m_pValue, and NULL. |
|
Definition at line 352 of file BENode.cpp. References CBENode(), Decode(), CBuffer::m_nLength, CBuffer::m_pBuffer, and NULL. Referenced by Decode(), CBTInfo::LoadTorrentBuffer(), CBTClient::OnBeHandshake(), CTorrentTrackerDlg::OnRun(), CDownloadTransferBT::OnSourceResponse(), and CBTTrackerRequest::Process(). |
|
Definition at line 452 of file BENode.cpp. References INC. Referenced by Decode(). |
|
Definition at line 107 of file BENode.h. References beString, CSettings::BitTorrent, CShareazaApp::m_dwWindowsVersion, m_nType, m_pValue, NULL, Settings, theApp, and CSettings::sBitTorrent::TorrentCodePage. Referenced by GetStringFromSubNode(), and CBTInfo::LoadTorrentTree(). |
|
Definition at line 294 of file BENode.cpp. References beDict, beInt, beList, beString, m_nType, m_nValue, m_pValue, and NULL. Referenced by GetSHA1(), CBTClient::OnSourceRequest(), and CBTClient::SendBeHandshake(). |
|
Definition at line 191 of file BENode.h. References beDict, beList, m_nType, and m_nValue. Referenced by CBTInfo::LoadTorrentTree(), and CBTClient::OnSourceRequest(). |
|
Definition at line 70 of file BENode.h. References beInt, m_nType, and m_nValue. Referenced by CBTInfo::LoadTorrentTree(), CDownloadTransferBT::OnSourceResponse(), and CBTTrackerRequest::Process(). |
|
Definition at line 197 of file BENode.h. References beDict, beList, m_nType, m_nValue, m_pValue, and NULL. |
|
Definition at line 164 of file BENode.cpp. |
|
Definition at line 150 of file BENode.cpp. References beDict, m_nType, m_nValue, m_pValue, and NULL. Referenced by GetStringFromSubNode(), CBTInfo::LoadTorrentTree(), CBTClient::OnBeHandshake(), CDownloadTransferBT::OnSourceResponse(), CTorrentTrackerDlg::OnTree(), and CBTTrackerRequest::Process(). |
|
Definition at line 278 of file BENode.cpp. References CSHA::Add(), Encode(), CSHA::Finish(), CSHA::GetHash(), CBuffer::m_nLength, CBuffer::m_pBuffer, and NULL. Referenced by CBTInfo::LoadTorrentTree(). |
|
Definition at line 83 of file BENode.h. References beString, CShareazaApp::m_dwWindowsVersion, m_nType, m_pValue, NULL, and theApp. Referenced by GetStringFromSubNode(), CBTInfo::LoadTorrentTree(), CBTClient::OnBeHandshake(), CDownloadTransferBT::OnSourceResponse(), and CBTTrackerRequest::Process(). |
|
Definition at line 246 of file BENode.cpp. References beDict, beList, beString, GetNode(), GetString(), IsValid(), and m_nType. |
|
Definition at line 182 of file BENode.cpp. References beString, CSettings::BitTorrent, DecodeString(), GetNode(), GetString(), IsValid(), m_nType, Settings, and CSettings::sBitTorrent::TorrentExtraKeys. Referenced by CBTInfo::LoadTorrentTree(). |
|
Definition at line 64 of file BENode.h. Referenced by CBTInfo::LoadTorrentTree(), CBTClient::OnBeHandshake(), CDownloadTransferBT::OnSourceResponse(), CTorrentTrackerDlg::OnTree(), and CBTTrackerRequest::Process(). |
|
Definition at line 156 of file BENode.h. References NULL. Referenced by GetStringFromSubNode(). |
|
|
|
Definition at line 177 of file BENode.h. References beString, Clear(), m_nType, m_nValue, and m_pValue. |
|
Definition at line 170 of file BENode.h. References SetString(). |
|
Definition at line 165 of file BENode.h. Referenced by SetString(). |
|
Definition at line 39 of file BENode.h. Referenced by Add(), CBENode(), Clear(), Decode(), DecodeString(), Encode(), GetCount(), GetInt(), GetNode(), GetString(), GetStringFromSubNode(), IsType(), SetInt(), and SetString(). |
|
Definition at line 41 of file BENode.h. Referenced by Add(), CBENode(), Clear(), Decode(), Encode(), GetCount(), GetInt(), GetNode(), CBTInfo::LoadTorrentTree(), CDownloadTransferBT::OnSourceResponse(), CBTTrackerRequest::Process(), SetInt(), and SetString(). |
|
Definition at line 40 of file BENode.h. Referenced by Add(), CBENode(), Clear(), Decode(), DecodeString(), Encode(), GetNode(), GetString(), CBTInfo::LoadTorrentTree(), CDownloadTransferBT::OnSourceResponse(), CBTTrackerRequest::Process(), SetString(), and ~CBENode(). |