#include <EDClients.h>
Public Member Functions | |
CEDClients () | |
virtual | ~CEDClients () |
void | Clear () |
BOOL | PushTo (DWORD nClientID, WORD nClientPort) |
CEDClient * | Connect (DWORD nClientID, WORD nClientPort, IN_ADDR *pServerAddress, WORD nServerPort, GGUID *pGUID=NULL) |
CEDClient * | GetByIP (IN_ADDR *pAddress) |
CEDClient * | GetByID (DWORD nClientID, IN_ADDR *pServer=NULL, GGUID *pGUID=NULL) |
CEDClient * | GetByGUID (GGUID *pHash) |
BOOL | Merge (CEDClient *pClient) |
BOOL | IsFull (CEDClient *pCheckThis=NULL) |
BOOL | IsOverloaded () |
void | OnRun () |
BOOL | OnAccept (CConnection *pConnection) |
BOOL | OnUDP (SOCKADDR_IN *pHost, CEDPacket *pPacket) |
CEDClient * | GetFirst () const |
Protected Member Functions | |
void | Add (CEDClient *pClient) |
void | Remove (CEDClient *pClient) |
Protected Attributes | |
CEDClient * | m_pFirst |
CEDClient * | m_pLast |
int | m_nCount |
DWORD | m_tLastRun |
DWORD | m_tLastMaxClients |
DWORD | m_tLastServerStats |
in_addr | m_pLastServer |
DWORD | m_nLastServerKey |
BOOL | m_bAllServersDone |
Private Member Functions | |
void | OnServerStatus (SOCKADDR_IN *pHost, CEDPacket *pPacket) |
void | RequestServerStatus (IN_ADDR *pHost, WORD nPort) |
void | RunGlobalStatsRequests (DWORD tNow) |
Friends | |
class | CEDClient |
|
Definition at line 52 of file EDClients.cpp. References m_bAllServersDone, m_nCount, m_nLastServerKey, m_pFirst, m_pLast, m_tLastMaxClients, m_tLastRun, m_tLastServerStats, and NULL. |
|
Definition at line 64 of file EDClients.cpp. References Clear(). |
|
Definition at line 72 of file EDClients.cpp. References m_nCount, CEDClient::m_pEdNext, CEDClient::m_pEdPrev, m_pFirst, m_pLast, and NULL. Referenced by CEDClient::CEDClient(). |
|
Definition at line 113 of file EDClients.cpp. References m_nCount, m_pFirst, m_pLast, and NULL. Referenced by CShareazaApp::ExitInstance(), and ~CEDClients(). |
|
Definition at line 140 of file EDClients.cpp. References CEDClient, CEDClient::ConnectTo(), GetByGUID(), GetByID(), CSecurity::IsDenied(), IsFull(), CEDPacket::IsLowID(), NULL, and Security. Referenced by CDownloadTransferED2K::Initiate(), CChatWindows::OpenPrivate(), CDownloadSource::PushRequest(), and PushTo(). |
|
Definition at line 200 of file EDClients.cpp. References CEDClient::m_pEdNext, m_pFirst, and NULL. Referenced by Connect(). |
|
Definition at line 185 of file EDClients.cpp. References CEDClient::m_pEdNext, m_pFirst, and NULL. Referenced by Connect(). |
|
Definition at line 174 of file EDClients.cpp. References CEDClient::m_pEdNext, m_pFirst, and NULL. Referenced by OnAccept(), OnUDP(), and CChatSession::SendChatMessage(). |
|
Definition at line 76 of file EDClients.h. References m_pFirst. Referenced by CDownloadTransferED2K::~CDownloadTransferED2K(). |
|
Definition at line 233 of file EDClients.cpp. References CSettings::eDonkey, CEDClient::m_pEdNext, m_pFirst, m_tLastMaxClients, CSettings::seDonkey::MaxLinks, NULL, and Settings. Referenced by Connect(), CEDClient::Connect(), CDownloadTransferED2K::Initiate(), OnAccept(), and CDownloadSource::PushRequest(). |
|
Definition at line 279 of file EDClients.cpp. References CSettings::eDonkey, CEDClient::m_pEdNext, m_pFirst, CSettings::seDonkey::MaxLinks, and Settings. Referenced by CEDClient::Connect(), and OnAccept(). |
|
Definition at line 213 of file EDClients.cpp. References CEDClient::m_pEdNext, m_pFirst, and NULL. Referenced by CEDClient::OnLoggedIn(). |
|
Definition at line 320 of file EDClients.cpp. References CEDClient::AttachTo(), CEDClient, CSettings::Connection, CSettings::eDonkey, CSettings::seDonkey::EnableToday, GetByIP(), IDS_ED2K_CLIENT_DISABLED, IsFull(), IsOverloaded(), CTransfers::m_pSection, CShareazaApp::Message(), MSG_DEBUG, MSG_ERROR, NULL, CSettings::sConnection::RequireForTransfers, Settings, theApp, and Transfers. Referenced by CHandshake::OnRead(). |
|
Definition at line 295 of file EDClients.cpp. References CSettings::eDonkey, CSettings::seDonkey::EnableToday, m_pFirst, m_tLastRun, CSettings::seDonkey::PacketThrottle, RunGlobalStatsRequests(), CSettings::seDonkey::ServerWalk, and Settings. Referenced by CTransfers::OnRun(). |
|
|
|
Definition at line 130 of file EDClients.cpp. References CEDClient::Connect(), Connect(), and NULL. Referenced by CEDNeighbour::OnCallbackRequest(). |
|
Definition at line 93 of file EDClients.cpp. References m_nCount, CEDClient::m_pEdNext, CEDClient::m_pEdPrev, m_pFirst, m_pLast, and NULL. Referenced by CEDClient::~CEDClient(). |
|
Definition at line 520 of file EDClients.cpp. References Datagrams, ED2K_C2SG_SERVERSTATUSREQUEST, ED2K_PROTOCOL_EDONKEY, m_nLastServerKey, CEDPacket::New(), CDatagrams::Send(), and CPacket::WriteLongLE(). Referenced by RunGlobalStatsRequests(). |
|
|
Definition at line 81 of file EDClients.h. Referenced by Connect(), and OnAccept(). |
|
Definition at line 49 of file EDClients.h. Referenced by CEDClients(), and RunGlobalStatsRequests(). |
|
Definition at line 43 of file EDClients.h. Referenced by Add(), CEDClients(), Clear(), and Remove(). |
|
Definition at line 48 of file EDClients.h. Referenced by CEDClients(), OnServerStatus(), RequestServerStatus(), and RunGlobalStatsRequests(). |
|
Definition at line 41 of file EDClients.h. Referenced by Add(), CEDClients(), Clear(), GetByGUID(), GetByID(), GetByIP(), GetFirst(), IsFull(), IsOverloaded(), Merge(), OnRun(), and Remove(). |
|
Definition at line 42 of file EDClients.h. Referenced by Add(), CEDClients(), Clear(), and Remove(). |
|
Definition at line 47 of file EDClients.h. Referenced by OnServerStatus(), and RunGlobalStatsRequests(). |
|
Definition at line 45 of file EDClients.h. Referenced by CEDClients(), and IsFull(). |
|
Definition at line 44 of file EDClients.h. Referenced by CEDClients(), and OnRun(). |
|
Definition at line 46 of file EDClients.h. Referenced by CEDClients(), and RunGlobalStatsRequests(). |