#include <NeighboursWithConnect.h>
Inheritance diagram for CNeighboursWithConnect:
Public Member Functions | |
CNeighboursWithConnect () | |
virtual | ~CNeighboursWithConnect () |
CNeighbour * | ConnectTo (IN_ADDR *pAddress, WORD nPort, PROTOCOLID nProtocol, BOOL bAutomatic=FALSE, BOOL bNoUltraPeer=FALSE) |
CNeighbour * | OnAccept (CConnection *pConnection) |
BOOL | IsG2Leaf () |
BOOL | IsG2Hub () |
DWORD | IsG2HubCapable (BOOL bDebug=FALSE) |
BOOL | IsG1Leaf () |
BOOL | IsG1Ultrapeer () |
DWORD | IsG1UltrapeerCapable (BOOL bDebug=FALSE) |
BOOL | NeedMoreHubs (PROTOCOLID nProtocol) |
BOOL | NeedMoreLeafs (PROTOCOLID nProtocol) |
BOOL | IsHubLoaded (PROTOCOLID nProtocol) |
virtual void | OnRun () |
Protected Member Functions | |
void | Maintain () |
void | PeerPrune (PROTOCOLID nProtocol) |
Protected Attributes | |
BOOL | m_bG2Leaf |
BOOL | m_bG2Hub |
BOOL | m_bG1Leaf |
BOOL | m_bG1Ultrapeer |
DWORD | m_tHubG2Promotion |
DWORD | m_tPresent [8] |
|
Definition at line 46 of file NeighboursWithConnect.cpp. References m_bG1Leaf, m_bG1Ultrapeer, m_bG2Hub, m_bG2Leaf, m_tHubG2Promotion, and m_tPresent. |
|
Definition at line 58 of file NeighboursWithConnect.cpp. |
|
|
Definition at line 447 of file NeighboursWithConnect.cpp. References CNetwork::m_bEnabled, m_bG1Leaf, and Network. Referenced by IsG1UltrapeerCapable(), NeedMoreHubs(), CShakeNeighbour::OnHeadersCompleteG1(), and CG1Neighbour::OnPing(). |
|
Definition at line 453 of file NeighboursWithConnect.cpp. References CNetwork::m_bEnabled, m_bG1Ultrapeer, and Network. Referenced by CShakeNeighbour::OnHeadersCompleteG1(), CShakeNeighbour::SendPublicHeaders(), CStatistics::Update(), CDiscoveryServices::Update(), and CMainWnd::UpdateMessages(). |
|
|
Definition at line 205 of file NeighboursWithConnect.cpp. References CNetwork::m_bEnabled, m_bG2Hub, and Network. Referenced by IsG1UltrapeerCapable(), CDatagrams::OnCrawlRequest(), CShakeNeighbour::OnHeadersCompleteG2(), CDatagrams::OnQueryKeyRequest(), CShakeNeighbour::SendPublicHeaders(), CStatistics::Update(), CDiscoveryServices::Update(), and CMainWnd::UpdateMessages(). |
|
|
Definition at line 199 of file NeighboursWithConnect.cpp. References CNetwork::m_bEnabled, m_bG2Leaf, and Network. Referenced by CShakeNeighbour::CShakeNeighbour(), IsG2HubCapable(), NeedMoreHubs(), CDatagrams::OnCrawlRequest(), CShakeNeighbour::OnHeadersCompleteG2(), CG2Neighbour::SendHAW(), and CG2Neighbour::SendLNI(). |
|
|
|
|
|
Definition at line 139 of file NeighboursWithConnect.cpp. References CShakeNeighbour::AttachTo(), CNeighboursBase::CShakeNeighbour, CNetwork::m_pSection, Network, and NULL. Referenced by CHandshake::OnRead(). |
|
Reimplemented from CNeighboursBase. Reimplemented in CNeighbours. Definition at line 794 of file NeighboursWithConnect.cpp. References CNetwork::m_bAutoConnect, CNetwork::m_bEnabled, CNetwork::m_pSection, Maintain(), Network, and CNeighboursBase::OnRun(). Referenced by CNeighbours::OnRun(). |
|
Definition at line 153 of file NeighboursWithConnect.cpp. References CNeighbour::Close(), CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), IDS_CONNECTION_PEERPRUNE, CConnection::m_bInitiated, CNeighbour::m_nNodeType, CNeighbour::m_nProtocol, CNeighbour::m_nState, NeedMoreHubs(), nrsConnected, ntHub, and PROTOCOL_NULL. Referenced by CShakeNeighbour::OnHandshakeComplete(). |
|
Definition at line 59 of file NeighboursWithConnect.h. Referenced by CNeighboursWithConnect(), IsG1Leaf(), and Maintain(). |
|
Definition at line 60 of file NeighboursWithConnect.h. Referenced by CNeighboursWithConnect(), IsG1Ultrapeer(), and Maintain(). |
|
Definition at line 58 of file NeighboursWithConnect.h. Referenced by CNeighboursWithConnect(), IsG2Hub(), and Maintain(). |
|
Definition at line 57 of file NeighboursWithConnect.h. Referenced by CNeighboursWithConnect(), IsG2Leaf(), and Maintain(). |
|
Definition at line 62 of file NeighboursWithConnect.h. Referenced by CNeighboursWithConnect(), and Maintain(). |
|
Definition at line 71 of file NeighboursWithConnect.h. Referenced by CNeighboursWithConnect(), and Maintain(). |