#include <G2Neighbour.h>
Inheritance diagram for CG2Neighbour:
Public Member Functions | |
CG2Neighbour (CNeighbour *pBase) | |
virtual | ~CG2Neighbour () |
virtual BOOL | Send (CPacket *pPacket, BOOL bRelease=TRUE, BOOL bBuffered=FALSE) |
virtual BOOL | SendQuery (CQuerySearch *pSearch, CPacket *pPacket, BOOL bLocal) |
Public Attributes | |
DWORD | m_nLeafCount |
DWORD | m_nLeafLimit |
BOOL | m_bCachedKeys |
CRouteCache * | m_pGUIDCache |
CHubHorizonGroup * | m_pHubGroup |
Protected Member Functions | |
virtual BOOL | OnRead () |
virtual BOOL | OnWrite () |
virtual BOOL | OnRun () |
void | SendStartups () |
BOOL | ProcessPackets () |
BOOL | OnPacket (CG2Packet *pPacket) |
BOOL | OnPing (CG2Packet *pPacket) |
void | SendLNI () |
BOOL | OnLNI (CG2Packet *pPacket) |
void | SendKHL () |
BOOL | OnKHL (CG2Packet *pPacket) |
void | SendHAW () |
BOOL | OnHAW (CG2Packet *pPacket) |
BOOL | OnQuery (CG2Packet *pPacket) |
BOOL | OnQueryAck (CG2Packet *pPacket) |
BOOL | OnQueryKeyReq (CG2Packet *pPacket) |
BOOL | OnQueryKeyAns (CG2Packet *pPacket) |
BOOL | OnPush (CG2Packet *pPacket) |
BOOL | OnProfileChallenge (CG2Packet *pPacket) |
BOOL | OnProfileDelivery (CG2Packet *pPacket) |
Protected Attributes | |
LONG | m_tAdjust |
DWORD | m_tLastPingIn |
DWORD | m_tLastPingOut |
DWORD | m_tWaitLNI |
DWORD | m_tLastKHL |
DWORD | m_tLastHAW |
CPtrList | m_pOutbound |
int | m_nQueryLimiter |
DWORD | m_tQueryTimer |
BOOL | m_bBlacklisted |
|
|
Definition at line 86 of file G2Neighbour.cpp. References m_pGUIDCache, m_pHubGroup, m_pOutbound, and CPacket::Release(). |
|
Definition at line 847 of file G2Neighbour.cpp. References CRouteCache::Add(), CHostCacheList::Add(), CNeighboursWithG2::GetRandomHub(), CHostCache::Gnutella2, HostCache, CNetwork::IsFirewalledAddress(), m_pGUIDCache, Neighbours, and Network. Referenced by OnPacket(). |
|
|
|
|
|
Definition at line 1211 of file G2Neighbour.cpp. References G2_PACKET_PROFILE_DELIVERY, CG2Packet::GetStringLen(), CGProfile::GetXML(), CGProfile::IsValid(), MyProfile, CG2Packet::New(), NULL, Send(), CG2Packet::WritePacket(), and CG2Packet::WriteString(). Referenced by OnPacket(). |
|
Definition at line 1230 of file G2Neighbour.cpp. References CXMLElement::FromString(), CGProfile::FromXML(), CG2Packet::m_bCompound, CPacket::m_nPosition, CNeighbour::m_pProfile, NULL, CG2Packet::ReadPacket(), and CG2Packet::ReadString(). Referenced by OnPacket(). |
|
Definition at line 1173 of file G2Neighbour.cpp. References CStatistics::Current, CG2Packet::Debug(), CPacket::GetRemaining(), Handshakes, IDS_PROTOCOL_ZERO_PUSH, CSecurity::IsDenied(), CNetwork::IsFirewalledAddress(), CG2Packet::m_bCompound, CNeighbour::m_nDropCount, CConnection::m_sAddress, CShareazaApp::Message(), MSG_ERROR, Network, CHandshakes::PushTo(), CPacket::ReadLongLE(), CPacket::ReadShortBE(), Security, CG2Packet::SkipCompound(), Statistics, and theApp. Referenced by OnPacket(). |
|
|
Definition at line 1060 of file G2Neighbour.cpp. References CHostCacheList::Add(), CHostCache::Gnutella2, HostCache, CConnection::m_pHost, NULL, CSearchManager::OnQueryAck(), and SearchManager. Referenced by OnPacket(). |
|
Definition at line 1127 of file G2Neighbour.cpp. References CHostCacheList::Add(), CHostCache::Gnutella2, HostCache, CNetwork::IsFirewalledAddress(), m_bCachedKeys, CNeighbour::m_nNodeType, CConnection::m_pHost, CConnection::m_sAddress, CShareazaApp::Message(), MSG_DEBUG, Network, ntHub, NULL, CHostCacheHost::SetKey(), and theApp. Referenced by OnPacket(). |
|
|
Reimplemented from CNeighbour. Definition at line 101 of file G2Neighbour.cpp. References CNeighbour::OnRead(), and ProcessPackets(). |
|
|
Reimplemented from CNeighbour. Definition at line 107 of file G2Neighbour.cpp. References CBuffer::m_nLength, CNeighbour::m_nOutbound, m_pOutbound, CConnection::m_pOutput, CNeighbour::m_pZOutput, CNeighbour::OnWrite(), CPacket::Release(), and CG2Packet::ToBuffer(). |
|
Definition at line 257 of file G2Neighbour.cpp. References CConnection::Close(), G2_FLAG_BIG_ENDIAN, CSettings::Gnutella1, IDS_PROTOCOL_TOO_LARGE, CBuffer::m_nLength, CBuffer::m_pBuffer, CConnection::m_pInput, CNeighbour::m_pZInput, CSettings::sGnutella1::MaximumPacket, CG2Packet::New(), OnPacket(), CPacket::Release(), CBuffer::Remove(), and Settings. Referenced by OnRead(). |
|
Reimplemented from CNeighbour. Definition at line 192 of file G2Neighbour.cpp. References CPacket::AddRef(), CStatistics::Current, CSettings::Gnutella1, CNeighbour::m_nOutbound, CNeighbour::m_nOutputCount, CPacket::m_nProtocol, CNeighbour::m_nState, m_pOutbound, CConnection::m_pOutput, CNeighbour::m_pZOutput, nrsConnected, NULL, CSettings::sGnutella1::PacketBufferSize, PROTOCOL_G2, CConnection::QueueRun(), CPacket::Release(), Settings, CPacket::SmartDump(), Statistics, and CPacket::ToBuffer(). Referenced by OnPing(), OnProfileChallenge(), OnQuery(), OnQueryKeyReq(), OnRun(), SendHAW(), SendKHL(), SendLNI(), SendQuery(), and SendStartups(). |
|
|
|
|
Reimplemented from CNeighbour. Definition at line 907 of file G2Neighbour.cpp. References CQueryHashTable::Check(), CQueryHashTable::m_bLive, CNeighbour::m_nNodeType, CPacket::m_nProtocol, CNeighbour::m_nState, CNeighbour::m_pQueryTableRemote, nrsConnected, ntHub, ntLeaf, NULL, PROTOCOL_G2, and Send(). |
|
Definition at line 235 of file G2Neighbour.cpp. References Datagrams, G2_PACKET_PING, G2_PACKET_PROFILE_CHALLENGE, CNetwork::IsListening(), CConnection::m_pHost, CNetwork::m_pHost, m_tLastPingOut, Network, CG2Packet::New(), CDatagrams::Send(), Send(), CPacket::WriteLongLE(), CG2Packet::WritePacket(), and CPacket::WriteShortBE(). Referenced by CG2Neighbour(). |
|
Definition at line 60 of file G2Neighbour.h. Referenced by CG2Neighbour(), and OnQuery(). |
|
Definition at line 44 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnKHL(), OnLNI(), and OnQueryKeyAns(). |
|
Definition at line 42 of file G2Neighbour.h. Referenced by CG2Neighbour(), CNeighboursWithG2::CreateQueryWeb(), OnLNI(), CRemote::PageNetworkNetwork(), SendKHL(), and CNeighboursWnd::Update(). |
|
Definition at line 43 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnLNI(), CRemote::PageNetworkNetwork(), and CNeighboursWnd::Update(). |
|
Definition at line 58 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnQuery(), and OnRun(). |
|
Definition at line 45 of file G2Neighbour.h. Referenced by CG2Neighbour(), CNeighboursWithG2::GetRandomHub(), OnHAW(), SendHAW(), and ~CG2Neighbour(). |
|
Definition at line 46 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnKHL(), and ~CG2Neighbour(). |
|
Definition at line 55 of file G2Neighbour.h. Referenced by OnWrite(), Send(), and ~CG2Neighbour(). |
|
Definition at line 48 of file G2Neighbour.h. Referenced by CG2Neighbour(), and OnKHL(). |
|
Definition at line 53 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnRun(), and SendHAW(). |
|
Definition at line 52 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnRun(), and SendKHL(). |
|
Definition at line 49 of file G2Neighbour.h. Referenced by CG2Neighbour(), and OnPing(). |
|
Definition at line 50 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnRun(), and SendStartups(). |
|
Definition at line 59 of file G2Neighbour.h. Referenced by CG2Neighbour(), and OnRun(). |
|
Definition at line 51 of file G2Neighbour.h. Referenced by CG2Neighbour(), OnLNI(), and OnRun(). |