#include <Handshakes.h>
Public Member Functions | |
CHandshakes () | |
virtual | ~CHandshakes () |
BOOL | Listen () |
void | Disconnect () |
BOOL | PushTo (IN_ADDR *pAddress, WORD nPort, DWORD nIndex=0) |
BOOL | IsConnectedTo (IN_ADDR *pAddress) |
POSITION | GetIterator () const |
CHandshake * | GetNext (POSITION &pos) const |
BOOL | IsListening () const |
Public Attributes | |
DWORD | m_nStableCount |
DWORD | m_tStableTime |
Protected Member Functions | |
void | Substitute (CHandshake *pOld, CHandshake *pNew) |
void | Remove (CHandshake *pHandshake) |
void | OnRun () |
void | RunHandshakes () |
BOOL | AcceptConnection () |
void | CreateHandshake (SOCKET hSocket, SOCKADDR_IN *pHost) |
void | RunStableUpdate () |
Static Protected Member Functions | |
static UINT | ThreadStart (LPVOID pParam) |
static int CALLBACK | AcceptCheck (IN LPWSABUF lpCallerId, IN LPWSABUF lpCallerData, IN OUT LPQOS lpSQOS, IN OUT LPQOS lpGQOS, IN LPWSABUF lpCalleeId, OUT LPWSABUF lpCalleeData, OUT GROUP FAR *g, IN DWORD dwCallbackData) |
Protected Attributes | |
SOCKET | m_hSocket |
HANDLE | m_hThread |
CEvent | m_pWakeup |
CPtrList | m_pList |
CCriticalSection | m_pSection |
Friends | |
class | CHandshake |
|
Definition at line 53 of file Handshakes.cpp. References m_hSocket, m_hThread, m_nStableCount, m_tStableTime, and NULL. |
|
Definition at line 65 of file Handshakes.cpp. References Disconnect(), m_hSocket, m_hThread, and NULL. |
|
Definition at line 466 of file Handshakes.cpp. References IDS_NETWORK_SECURITY_DENIED, CSecurity::IsDenied(), CShareazaApp::Message(), MSG_ERROR, NULL, Security, and theApp. Referenced by AcceptConnection(). |
|
Definition at line 404 of file Handshakes.cpp. References AcceptCheck(), CreateHandshake(), IDS_NETWORK_SECURITY_DENIED, CSecurity::IsDenied(), m_hSocket, m_nStableCount, CShareazaApp::Message(), MSG_ERROR, Security, and theApp. Referenced by OnRun(). |
|
Definition at line 445 of file Handshakes.cpp. References CHandshake, m_pList, m_pSection, and m_pWakeup. Referenced by AcceptConnection(). |
|
Definition at line 172 of file Handshakes.cpp. References GetIterator(), GetNext(), m_hSocket, m_hThread, m_nStableCount, m_pList, m_pSection, m_pWakeup, m_tStableTime, CShareazaApp::Message(), MSG_DEBUG, NULL, and theApp. Referenced by CNetwork::Disconnect(), and ~CHandshakes(). |
|
Definition at line 93 of file Handshakes.h. References m_pList. Referenced by Disconnect(), IsConnectedTo(), and RunHandshakes(). |
|
Definition at line 100 of file Handshakes.h. References m_pList. Referenced by Disconnect(), IsConnectedTo(), and RunHandshakes(). |
|
Definition at line 278 of file Handshakes.cpp. References GetIterator(), GetNext(), CConnection::m_pHost, and m_pSection. Referenced by CNetwork::IsConnectedTo(). |
|
Definition at line 107 of file Handshakes.h. References m_hSocket. Referenced by CNetwork::IsListening(), and CRemoteSettingsPage::OnBnClickedRemoteEnable(). |
|
Definition at line 80 of file Handshakes.cpp. References CSettings::Connection, IDS_NETWORK_CANT_LISTEN, IDS_NETWORK_LISTENING_TCP, CSettings::sConnection::InBind, m_hSocket, m_hThread, CNetwork::m_pHost, m_pSection, m_pWakeup, CShareazaApp::Message(), MSG_DEFAULT, MSG_ERROR, Network, CNetwork::RandomPort(), Settings, theApp, and ThreadStart(). Referenced by CNetwork::Connect(). |
|
Definition at line 346 of file Handshakes.cpp. References AcceptConnection(), m_hSocket, m_pWakeup, RunHandshakes(), and RunStableUpdate(). |
|
Definition at line 234 of file Handshakes.cpp. References CUploads::AllowMoreTo(), CHandshake, IDS_UPLOAD_PUSH_BUSY, m_pList, m_pSection, CTransfers::m_pSection, CShareazaApp::Message(), MSG_ERROR, CHandshake::Push(), theApp, Transfers, and Uploads. Referenced by CG2Neighbour::OnPush(), CG1Neighbour::OnPush(), and CDatagrams::OnPush(). |
|
Definition at line 317 of file Handshakes.cpp. |
|
Definition at line 372 of file Handshakes.cpp. References CConnection::DoRun(), GetIterator(), GetNext(), m_pList, and m_pSection. Referenced by OnRun(). |
|
Definition at line 494 of file Handshakes.cpp. References DiscoveryServices, m_nStableCount, m_tStableTime, NULL, and CDiscoveryServices::Update(). Referenced by OnRun(). |
|
Definition at line 302 of file Handshakes.cpp. |
|
Definition at line 335 of file Handshakes.cpp. Referenced by Listen(). |
|
Definition at line 114 of file Handshakes.h. Referenced by CreateHandshake(), and PushTo(). |
|
Definition at line 53 of file Handshakes.h. Referenced by AcceptConnection(), CHandshakes(), Disconnect(), IsListening(), Listen(), OnRun(), and ~CHandshakes(). |
|
Definition at line 54 of file Handshakes.h. Referenced by CHandshakes(), Disconnect(), Listen(), and ~CHandshakes(). |
|
Definition at line 47 of file Handshakes.h. Referenced by AcceptConnection(), CHandshakes(), Disconnect(), CNetwork::IsStable(), and RunStableUpdate(). |
|
Definition at line 58 of file Handshakes.h. Referenced by CreateHandshake(), Disconnect(), GetIterator(), GetNext(), PushTo(), Remove(), RunHandshakes(), and Substitute(). |
|
Definition at line 59 of file Handshakes.h. Referenced by CreateHandshake(), Disconnect(), IsConnectedTo(), Listen(), PushTo(), and RunHandshakes(). |
|
Definition at line 55 of file Handshakes.h. Referenced by CreateHandshake(), Disconnect(), Listen(), OnRun(), and CHandshake::Push(). |
|
Definition at line 48 of file Handshakes.h. Referenced by CHandshakes(), Disconnect(), CNetwork::GetStableTime(), and RunStableUpdate(). |