#include <G1Neighbour.h>
Inheritance diagram for CG1Neighbour:
Public Member Functions | |
CG1Neighbour (CNeighbour *pBase) | |
virtual | ~CG1Neighbour () |
virtual BOOL | Send (CPacket *pPacket, BOOL bRelease=TRUE, BOOL bBuffered=FALSE) |
BOOL | SendPing (DWORD dwNow=0, GGUID *pGUID=NULL) |
void | OnNewPong (CPongItem *pPong) |
virtual BOOL | SendQuery (CQuerySearch *pSearch, CPacket *pPacket, BOOL bLocal) |
void | SendG2Push (GGUID *pGUID, CPacket *pPacket) |
Protected Member Functions | |
virtual BOOL | OnRead () |
virtual BOOL | OnWrite () |
virtual BOOL | OnRun () |
BOOL | ProcessPackets () |
BOOL | OnPacket (CG1Packet *pPacket) |
BOOL | OnPing (CG1Packet *pPacket) |
BOOL | OnPong (CG1Packet *pPacket) |
BOOL | OnBye (CG1Packet *pPacket) |
BOOL | OnVendor (CG1Packet *pPacket) |
BOOL | OnPush (CG1Packet *pPacket) |
BOOL | OnQuery (CG1Packet *pPacket) |
BOOL | OnHit (CG1Packet *pPacket) |
void | SendClusterAdvisor () |
BOOL | OnClusterAdvisor (CG1Packet *pPacket) |
Protected Attributes | |
DWORD | m_tLastInPing |
DWORD | m_tLastOutPing |
DWORD | m_tClusterHost |
DWORD | m_tClusterSent |
BYTE | m_nPongNeeded [PONG_NEEDED_BUFFER] |
GGUID | m_pLastPingID |
BYTE | m_nLastPingHops |
BYTE | m_nHopsFlow |
CG1PacketBuffer * | m_pOutbound |
|
|
Definition at line 126 of file G1Neighbour.cpp. References m_pOutbound. |
|
Definition at line 682 of file G1Neighbour.cpp. References IDS_CONNECTION_BYE, CConnection::m_sAddress, CShareazaApp::Message(), MSG_ERROR, and theApp. Referenced by OnPacket(). |
|
Definition at line 975 of file G1Neighbour.cpp. References CHostCacheList::Add(), CPacket::GetRemaining(), CHostCache::Gnutella1, HostCache, m_tClusterHost, CPacket::RazaVerify(), CPacket::ReadLongLE(), CPacket::ReadShortLE(), SendClusterAdvisor(), and SHAREAZA_VENDOR_T. Referenced by OnVendor(). |
|
Definition at line 1274 of file G1Neighbour.cpp. References CStatistics::Current, IDS_PROTOCOL_BAD_HIT, CNeighbour::m_nDropCount, CPacket::m_nLength, CConnection::m_sAddress, CShareazaApp::Message(), MSG_ERROR, CNeighbour::OnCommonHit(), Statistics, and theApp. Referenced by OnPacket(). |
|
Definition at line 663 of file G1Neighbour.cpp. References m_nLastPingHops, m_nPongNeeded, m_pLastPingID, and Send(). Referenced by CNeighboursWithG1::OnG1Pong(). |
|
|
|
|
|
|
Reimplemented from CNeighbour. Definition at line 137 of file G1Neighbour.cpp. References CNeighbour::OnRead(), and ProcessPackets(). |
|
Reimplemented from CNeighbour. Definition at line 191 of file G1Neighbour.cpp. References NULL, CNeighbour::OnRun(), and SendPing(). |
|
Definition at line 724 of file G1Neighbour.cpp. References CStatistics::Current, CSettings::Gnutella1, CNeighbour::m_nDropCount, m_nHopsFlow, CShareazaApp::m_nVersion, CG1Packet::New(), OnClusterAdvisor(), CSearchManager::OnQueryStatusRequest(), SearchManager, Send(), Settings, Statistics, theApp, CSettings::sGnutella1::VendorMsg, CPacket::WriteLongLE(), and CPacket::WriteShortLE(). Referenced by OnPacket(). |
|
Reimplemented from CNeighbour. Definition at line 148 of file G1Neighbour.cpp. References CG1PacketBuffer::GetPacketToSend(), CG1PacketBuffer::m_nDropped, CBuffer::m_nLength, CNeighbour::m_nLostCount, CNeighbour::m_nOutbound, CG1PacketBuffer::m_nTotal, m_pOutbound, CConnection::m_pOutput, CNeighbour::m_pZOutput, CNeighbour::OnWrite(), CPacket::Release(), and CG1Packet::ToBuffer(). |
|
Definition at line 247 of file G1Neighbour.cpp. References CConnection::Close(), CSettings::Gnutella1, IDS_PROTOCOL_TOO_LARGE, CBuffer::m_nLength, CBuffer::m_pBuffer, CConnection::m_pInput, CNeighbour::m_pZInput, CSettings::sGnutella1::MaximumPacket, CG1Packet::New(), OnPacket(), CPacket::Release(), CBuffer::Remove(), and Settings. Referenced by OnRead(). |
|
Reimplemented from CNeighbour. Definition at line 209 of file G1Neighbour.cpp. References CG1PacketBuffer::Add(), CStatistics::Current, CNeighbour::m_nOutputCount, CPacket::m_nProtocol, CNeighbour::m_nState, CG1Packet::m_nTTL, m_pOutbound, nrsConnected, NULL, PROTOCOL_G1, CConnection::QueueRun(), CPacket::Release(), CPacket::SmartDump(), and Statistics. Referenced by CG1Neighbour(), OnNewPong(), OnPing(), OnVendor(), SendClusterAdvisor(), SendG2Push(), SendPing(), and SendQuery(). |
|
Definition at line 918 of file G1Neighbour.cpp. References G1_PACKET_VENDOR, CHostCacheList::GetNewest(), CHostCache::Gnutella1, CSettings::Gnutella1, HostCache, CNeighbour::m_bShareaza, CPacket::m_pBuffer, CVendorCache::m_pShareaza, m_tClusterHost, m_tClusterSent, CG1Packet::New(), NULL, CPacket::RazaSign(), Send(), Settings, VendorCache, CSettings::sGnutella1::VendorMsg, CPacket::WriteLongLE(), and CPacket::WriteShortLE(). Referenced by OnClusterAdvisor(). |
|
Definition at line 1117 of file G1Neighbour.cpp. References G1_PACKET_PUSH, CPacket::GetRemaining(), CSettings::Gnutella1, CSettings::sGnutella1::MaximumTTL, CG1Packet::New(), CPacket::ReadLongLE(), CPacket::ReadShortLE(), Send(), Settings, CPacket::Write(), CPacket::WriteLongLE(), and CPacket::WriteShortLE(). Referenced by CNetwork::RoutePacket(). |
|
Definition at line 353 of file G1Neighbour.cpp. References G1_PACKET_PING, CSettings::Gnutella1, CNeighbour::m_nNodeType, m_tLastOutPing, CNeighboursWithConnect::NeedMoreHubs(), CNeighboursWithConnect::NeedMoreLeafs(), Neighbours, CG1Packet::New(), ntLeaf, NULL, CSettings::sGnutella1::PingRate, PROTOCOL_G1, Send(), and Settings. Referenced by CNeighboursWithG1::OnG1Ping(), and OnRun(). |
|
Reimplemented from CNeighbour. Definition at line 1218 of file G1Neighbour.cpp. References CQueryHashTable::Check(), CQuerySearch::m_bAndG1, CQueryHashTable::m_bLive, CG1Packet::m_nHops, m_nHopsFlow, CNeighbour::m_nNodeType, CPacket::m_nProtocol, CNeighbour::m_nState, CNeighbour::m_pQueryTableRemote, CNeighbour::m_tLastQuery, nrsConnected, ntHub, ntLeaf, NULL, PROTOCOL_G1, and Send(). |
|
Definition at line 68 of file G1Neighbour.h. Referenced by CG1Neighbour(), OnVendor(), and SendQuery(). |
|
Definition at line 65 of file G1Neighbour.h. Referenced by OnNewPong(), and OnPing(). |
|
Definition at line 61 of file G1Neighbour.h. Referenced by CG1Neighbour(), OnNewPong(), and OnPing(). |
|
Definition at line 64 of file G1Neighbour.h. Referenced by OnNewPong(), and OnPing(). |
|
Definition at line 73 of file G1Neighbour.h. Referenced by CG1Neighbour(), OnWrite(), Send(), and ~CG1Neighbour(). |
|
Definition at line 55 of file G1Neighbour.h. Referenced by OnClusterAdvisor(), and SendClusterAdvisor(). |
|
Definition at line 56 of file G1Neighbour.h. Referenced by SendClusterAdvisor(). |
|
Definition at line 53 of file G1Neighbour.h. Referenced by OnPing(). |
|
Definition at line 54 of file G1Neighbour.h. Referenced by CG1Neighbour(), and SendPing(). |