#include <EDNeighbour.h>
Inheritance diagram for CEDNeighbour:
Public Member Functions | |
CEDNeighbour () | |
virtual | ~CEDNeighbour () |
virtual BOOL | ConnectTo (IN_ADDR *pAddress, WORD nPort, BOOL bAutomatic) |
virtual BOOL | Send (CPacket *pPacket, BOOL bRelease=TRUE, BOOL bBuffered=FALSE) |
virtual BOOL | SendQuery (CQuerySearch *pSearch, CPacket *pPacket, BOOL bLocal) |
BOOL | SendSharedDownload (CDownload *pDownload) |
Public Attributes | |
DWORD | m_nClientID |
DWORD | m_nUserCount |
DWORD | m_nUserLimit |
DWORD | m_nFileLimit |
DWORD | m_nTCPFlags |
DWORD | m_nUDPFlags |
CString | m_sServerName |
CPtrList | m_pQueries |
DWORD | m_nFilesSent |
Protected Member Functions | |
virtual BOOL | OnRun () |
virtual BOOL | OnConnected () |
virtual void | OnDropped (BOOL bError) |
virtual BOOL | OnRead () |
BOOL | OnPacket (CEDPacket *pPacket) |
BOOL | OnRejected (CEDPacket *pPacket) |
BOOL | OnServerMessage (CEDPacket *pPacket) |
BOOL | OnIdChange (CEDPacket *pPacket) |
BOOL | OnServerList (CEDPacket *pPacket) |
BOOL | OnServerStatus (CEDPacket *pPacket) |
BOOL | OnServerIdent (CEDPacket *pPacket) |
BOOL | OnCallbackRequest (CEDPacket *pPacket) |
BOOL | OnSearchResults (CEDPacket *pPacket) |
BOOL | OnFoundSources (CEDPacket *pPacket) |
void | SendSharedFiles () |
|
Definition at line 57 of file EDNeighbour.cpp. References m_nClientID, m_nFileLimit, m_nFilesSent, CNeighbour::m_nNodeType, m_nTCPFlags, m_nUDPFlags, m_nUserCount, m_nUserLimit, CNeighbour::m_pMoreResultsGUID, ntHub, and NULL. |
|
Definition at line 70 of file EDNeighbour.cpp. References CNeighbour::m_pMoreResultsGUID, m_pQueries, and NULL. |
|
Definition at line 83 of file EDNeighbour.cpp. References CNeighboursBase::Add(), CConnection::ConnectTo(), IDS_CONNECTION_CONNECT_FAIL, IDS_ED2K_SERVER_CONNECTING, CNeighbour::m_bAutomatic, CConnection::m_hSocket, CNeighbour::m_nState, CConnection::m_pHost, CNetwork::m_pWakeup, CConnection::m_sAddress, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, Neighbours, Network, nrsConnecting, and theApp. Referenced by CNeighboursWithConnect::ConnectTo(). |
|
Definition at line 507 of file EDNeighbour.cpp. References EDClients, CNetwork::IsFirewalledAddress(), Network, and CEDClients::PushTo(). Referenced by OnPacket(). |
|
|
Reimplemented from CNeighbour. Definition at line 212 of file EDNeighbour.cpp. References CConnection::Close(), HostCache, IDS_CONNECTION_DROPPED, IDS_CONNECTION_REFUSED, CNeighbour::m_nState, CConnection::m_pHost, nrsConnected, nrsConnecting, and CHostCache::OnFailure(). |
|
Definition at line 566 of file EDNeighbour.cpp. References CStatistics::Current, CQueryHit::FromPacket(), IDS_PROTOCOL_BAD_HIT, CNeighbour::m_nDropCount, m_nTCPFlags, CConnection::m_pHost, CConnection::m_sAddress, CShareazaApp::Message(), MSG_ERROR, Network, NULL, CNetwork::OnQueryHits(), Statistics, and theApp. Referenced by OnPacket(). |
|
|
|
Reimplemented from CNeighbour. Definition at line 232 of file EDNeighbour.cpp. References ED2K_PROTOCOL_EDONKEY, CConnection::m_pInput, CNeighbour::m_pZInput, OnPacket(), CNeighbour::OnRead(), CEDPacket::ReadBuffer(), and CPacket::Release(). |
|
Definition at line 302 of file EDNeighbour.cpp. References CConnection::Close(), and IDS_ED2K_SERVER_REJECTED. Referenced by OnPacket(). |
|
Reimplemented from CNeighbour. Definition at line 136 of file EDNeighbour.cpp. References CConnection::Close(), CSettings::Connection, IDS_CONNECTION_TIMEOUT_CONNECT, IDS_CONNECTION_TIMEOUT_TRAFFIC, IDS_HANDSHAKE_TIMEOUT, m_nClientID, CNeighbour::m_nState, CConnection::m_tConnected, CNeighbour::m_tLastPacket, nrsConnected, Settings, CSettings::sConnection::TimeoutConnect, and CSettings::sConnection::TimeoutHandshake. |
|
Definition at line 521 of file EDNeighbour.cpp. References CStatistics::Current, ED2K_S2C_SEARCHRESULTS, CQueryHit::FromPacket(), IDS_PROTOCOL_BAD_HIT, CNeighbour::m_nDropCount, m_nTCPFlags, CConnection::m_pHost, CNeighbour::m_pMoreResultsGUID, m_pQueries, CConnection::m_sAddress, CShareazaApp::Message(), MSG_DEBUG, MSG_ERROR, Network, NULL, CNetwork::OnQueryHits(), Statistics, and theApp. Referenced by OnPacket(). |
|
|
Definition at line 387 of file EDNeighbour.cpp. References CHostCacheList::Add(), CHostCache::eDonkey, CSettings::eDonkey, HostCache, CSettings::seDonkey::LearnNewServers, CConnection::m_pHost, CConnection::m_sAddress, CShareazaApp::Message(), MSG_DEBUG, Settings, and theApp. Referenced by OnPacket(). |
|
Definition at line 308 of file EDNeighbour.cpp. References CPacket::GetRemaining(), IDS_ED2K_SERVER_MESSAGE, m_nTCPFlags, CConnection::m_sAddress, CShareazaApp::Message(), MSG_SYSTEM, CEDPacket::ReadEDString(), and theApp. Referenced by OnPacket(). |
|
Definition at line 414 of file EDNeighbour.cpp. References CHostCacheList::Add(), CHostCache::eDonkey, CPacket::GetRemaining(), HostCache, CNeighbour::m_nFileCount, m_nUserCount, CConnection::m_pHost, and CPacket::ReadLongLE(). Referenced by OnPacket(). |
|
Reimplemented from CNeighbour. Definition at line 110 of file EDNeighbour.cpp. References CStatistics::Current, CNeighbour::m_nOutputCount, CNeighbour::m_nState, CConnection::m_pOutput, CNeighbour::m_pZOutput, nrsConnected, nrsHandshake1, NULL, PROTOCOL_ED2K, CConnection::QueueRun(), and Statistics. Referenced by OnConnected(), OnIdChange(), CNeighboursWithED2K::PushDonkey(), SendQuery(), SendSharedDownload(), and SendSharedFiles(). |
|
Reimplemented from CNeighbour. Definition at line 872 of file EDNeighbour.cpp. References CSettings::eDonkey, CQuerySearch::m_bED2K, CQuerySearch::m_bWantDN, m_nClientID, CPacket::m_nProtocol, CNeighbour::m_nState, CQuerySearch::m_pGUID, m_pQueries, CSettings::seDonkey::MagnetSearch, nrsConnected, NULL, PROTOCOL_ED2K, Send(), and Settings. |
|
|
|
Definition at line 42 of file EDNeighbour.h. Referenced by CEDNeighbour(), CNeighboursWithED2K::GetDonkeyServer(), OnConnected(), OnIdChange(), OnRun(), CRemote::PageNetworkNetwork(), CNeighboursWithED2K::PushDonkey(), CEDClient::SendHello(), SendQuery(), SendSharedDownload(), SendSharedFiles(), and CNeighboursWnd::Update(). |
|
Definition at line 45 of file EDNeighbour.h. Referenced by CEDNeighbour(), SendSharedDownload(), and SendSharedFiles(). |
|
Definition at line 51 of file EDNeighbour.h. Referenced by CEDNeighbour(), SendSharedDownload(), and SendSharedFiles(). |
|
Definition at line 46 of file EDNeighbour.h. Referenced by CEDNeighbour(), OnFoundSources(), OnIdChange(), OnSearchResults(), OnServerIdent(), OnServerMessage(), SendSharedDownload(), and SendSharedFiles(). |
|
Definition at line 47 of file EDNeighbour.h. Referenced by CEDNeighbour(). |
|
Definition at line 43 of file EDNeighbour.h. Referenced by CEDNeighbour(), OnServerStatus(), CRemote::PageNetworkNetwork(), and CNeighboursWnd::Update(). |
|
Definition at line 44 of file EDNeighbour.h. Referenced by CEDNeighbour(), OnServerIdent(), CRemote::PageNetworkNetwork(), and CNeighboursWnd::Update(). |
|
Definition at line 50 of file EDNeighbour.h. Referenced by OnSearchResults(), SendQuery(), and ~CEDNeighbour(). |
|
Definition at line 48 of file EDNeighbour.h. Referenced by OnServerIdent(), CRemote::PageNetworkNetwork(), and CNeighboursWnd::Update(). |