Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CConnection Class Reference

#include <Connection.h>

Inheritance diagram for CConnection:

CChatSession CHandshake CNeighbour CTransfer CEDNeighbour CG1Neighbour CG2Neighbour CShakeNeighbour CBTClient CDownloadTransfer CDownloadTransferFTP::CFTPLIST CDownloadTransferFTP::CFTPRETR CEDClient CHostBrowser CRemote CUploadTransfer List of all members.

Public Member Functions

 CConnection ()
virtual ~CConnection ()
virtual BOOL ConnectTo (SOCKADDR_IN *pHost)
virtual BOOL ConnectTo (IN_ADDR *pAddress, WORD nPort)
virtual void AcceptFrom (SOCKET hSocket, SOCKADDR_IN *pHost)
virtual void AttachTo (CConnection *pConnection)
virtual void Close ()
BOOL DoRun ()
void QueueRun ()
void Measure ()
BOOL ReadHeaders ()
BOOL SendMyAddress ()
BOOL IsAgentBlocked ()

Static Public Member Functions

static CString URLEncode (LPCTSTR pszInput)
static CString URLDecode (LPCTSTR pszInput)
static CString URLDecodeANSI (LPCTSTR pszInput)
static CString URLDecodeUnicode (LPCTSTR pszInput)
static BOOL StartsWith (LPCTSTR pszInput, LPCTSTR pszText)

Public Attributes

SOCKADDR_IN m_pHost
CString m_sAddress
BOOL m_bInitiated
BOOL m_bConnected
DWORD m_tConnected
SOCKET m_hSocket
CBufferm_pInput
CBufferm_pOutput
CString m_sUserAgent
CString m_sLastHeader
TCPBandwidthMeter m_mInput
TCPBandwidthMeter m_mOutput
int m_nQueuedRun

Protected Member Functions

virtual BOOL OnRun ()
virtual BOOL OnConnected ()
virtual BOOL OnRead ()
virtual BOOL OnWrite ()
virtual void OnDropped (BOOL bError)
virtual BOOL OnHeaderLine (CString &strHeader, CString &strValue)
virtual BOOL OnHeadersComplete ()

Constructor & Destructor Documentation

CConnection::CConnection  ) 
 

Definition at line 59 of file Connection.cpp.

References m_bConnected, m_bInitiated, m_hSocket, m_mInput, m_mOutput, m_nQueuedRun, m_pInput, m_pOutput, m_tConnected, and NULL.

CConnection::~CConnection  )  [virtual]
 

Definition at line 76 of file Connection.cpp.

References Close().


Member Function Documentation

void CConnection::AcceptFrom SOCKET  hSocket,
SOCKADDR_IN *  pHost
[virtual]
 

Definition at line 199 of file Connection.cpp.

References CSettings::Bandwidth, CStatistics::Current, m_bConnected, m_bInitiated, m_hSocket, m_pHost, m_pInput, m_pOutput, m_sAddress, m_tConnected, CSettings::sBandwidth::PeerIn, CSettings::sBandwidth::PeerOut, Settings, and Statistics.

Referenced by CHandshake::CHandshake().

void CConnection::AttachTo CConnection pConnection  )  [virtual]
 

Reimplemented in CBTClient, CChatSession, CEDClient, CShakeNeighbour, CTransfer, and CUploadTransferHTTP.

Definition at line 231 of file Connection.cpp.

References m_bConnected, m_bInitiated, m_hSocket, m_mInput, m_mOutput, m_pHost, m_pInput, m_pOutput, m_sAddress, m_sUserAgent, m_tConnected, NULL, and TCPBandwidthMeter::tLast.

Referenced by CTransfer::AttachTo(), CShakeNeighbour::AttachTo(), CChatSession::AttachTo(), CHandshake::CHandshake(), CNeighbour::CNeighbour(), and CChatSession::OnPush().

void CConnection::Close  )  [virtual]
 

Reimplemented in CBTClient, CChatSession, CEDClient, and CTransfer.

Definition at line 268 of file Connection.cpp.

References m_bConnected, m_hSocket, m_pInput, m_pOutput, and NULL.

Referenced by CTransfer::Close(), CShakeNeighbour::Close(), CNeighbour::Close(), CChatSession::Close(), CShakeNeighbour::OnDropped(), CNeighbour::OnDropped(), CEDNeighbour::OnDropped(), CShakeNeighbour::OnHeadersCompleteG1(), CShakeNeighbour::OnHeadersCompleteG2(), CEDNeighbour::OnIdChange(), CEDNeighbour::OnRejected(), CShakeNeighbour::OnRun(), CNeighbour::OnRun(), CG2Neighbour::OnRun(), CEDNeighbour::OnRun(), CG2Neighbour::ProcessPackets(), CG1Neighbour::ProcessPackets(), CShakeNeighbour::ReadResponse(), CChatSession::SendPush(), and ~CConnection().

BOOL CConnection::ConnectTo IN_ADDR *  pAddress,
WORD  nPort
[virtual]
 

Reimplemented in CTransfer.

Definition at line 97 of file Connection.cpp.

References CSettings::Bandwidth, CSettings::Connection, CStatistics::Current, IDS_NETWORK_SECURITY_OUTGOING, CSecurity::IsDenied(), m_bInitiated, m_hSocket, m_pHost, m_pInput, m_pOutput, m_sAddress, m_tConnected, CShareazaApp::Message(), MSG_DEBUG, MSG_ERROR, Network, NULL, CSettings::sConnection::OutHost, CSettings::sBandwidth::PeerIn, CSettings::sBandwidth::PeerOut, CNetwork::Resolve(), Security, Settings, Statistics, and theApp.

BOOL CConnection::ConnectTo SOCKADDR_IN *  pHost  )  [virtual]
 

Reimplemented in CDownloadTransferFTP::CFTPLIST, and CDownloadTransferFTP::CFTPRETR.

Definition at line 88 of file Connection.cpp.

Referenced by CEDClient::Connect(), CChatSession::Connect(), CTransfer::ConnectTo(), CShakeNeighbour::ConnectTo(), CEDNeighbour::ConnectTo(), CDownloadTransferFTP::CFTPRETR::ConnectTo(), CDownloadTransferFTP::CFTPLIST::ConnectTo(), and CHandshake::Push().

BOOL CConnection::DoRun  ) 
 

Definition at line 297 of file Connection.cpp.

References m_bConnected, m_hSocket, m_mInput, m_mOutput, m_nQueuedRun, m_tConnected, NULL, OnConnected(), OnDropped(), OnRead(), OnRun(), OnWrite(), TCPBandwidthMeter::pLimit, and TCPBandwidthMeter::tLast.

Referenced by CNeighboursBase::OnRun(), CTransfers::OnRunTransfers(), and CHandshakes::RunHandshakes().

BOOL CConnection::IsAgentBlocked  ) 
 

Definition at line 887 of file Connection.cpp.

References CSettings::sUploads::BlockAgents, CSettings::sGnutella::BlockBlankClients, CSettings::Gnutella, m_sUserAgent, Settings, and CSettings::Uploads.

Referenced by CShakeNeighbour::OnHeaderLine(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadTransferFTP::OnHeaderLine(), and CUploadTransferHTTP::OnHeadersComplete().

void CConnection::Measure  ) 
 

Definition at line 679 of file Connection.cpp.

References METER_LENGTH, and METER_PERIOD.

Referenced by CUploadTransferED2K::GetMeasuredSpeed(), CUploadTransferBT::GetMeasuredSpeed(), CUploadTransfer::GetMeasuredSpeed(), CDownloadTransferFTP::GetMeasuredSpeed(), CDownloadTransferED2K::GetMeasuredSpeed(), CDownloadTransferBT::GetMeasuredSpeed(), CDownloadTransfer::GetMeasuredSpeed(), CNeighboursBase::OnRun(), CNeighbourTipCtrl::OnTimer(), CRemote::PageNetworkNetwork(), and CNeighboursWnd::Update().

BOOL CConnection::OnConnected  )  [protected, virtual]
 

Reimplemented in CBTClient, CChatSession, CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, CDownloadTransferHTTP, CEDClient, CEDNeighbour, CHandshake, CHostBrowser, CShakeNeighbour, CUploadTransferBT, and CUploadTransferED2K.

Definition at line 377 of file Connection.cpp.

Referenced by DoRun(), CShakeNeighbour::OnConnected(), CHostBrowser::OnConnected(), CHandshake::OnConnected(), and CChatSession::OnConnected().

void CConnection::OnDropped BOOL  bError  )  [protected, virtual]
 

Reimplemented in CBTClient, CChatSession, CDownloadTransferED2K, CDownloadTransferFTP, CDownloadTransferHTTP, CEDClient, CEDNeighbour, CHandshake, CHostBrowser, CNeighbour, CRemote, CShakeNeighbour, CUploadTransferED2K, and CUploadTransferHTTP.

Definition at line 384 of file Connection.cpp.

Referenced by DoRun().

BOOL CConnection::OnHeaderLine CString &  strHeader,
CString &  strValue
[protected, virtual]
 

Reimplemented in CChatSession, CDownloadTransferFTP, CDownloadTransferHTTP, CHostBrowser, CShakeNeighbour, CTransfer, and CUploadTransferHTTP.

Definition at line 803 of file Connection.cpp.

References CNetwork::AcquireLocalAddress(), GNUTELLA_DEFAULT_PORT, m_bInitiated, m_pHost, m_sUserAgent, and Network.

Referenced by CTransfer::OnHeaderLine(), and ReadHeaders().

BOOL CConnection::OnHeadersComplete  )  [protected, virtual]
 

Reimplemented in CChatSession, CDownloadTransferHTTP, CHostBrowser, CRemote, CShakeNeighbour, and CUploadTransferHTTP.

Definition at line 847 of file Connection.cpp.

Referenced by ReadHeaders().

BOOL CConnection::OnRead  )  [protected, virtual]
 

Reimplemented in CBTClient, CChatSession, CDownloadTransferFTP, CDownloadTransferFTP::CFTPLIST, CDownloadTransferFTP::CFTPRETR, CDownloadTransferHTTP, CEDClient, CEDNeighbour, CG1Neighbour, CG2Neighbour, CHandshake, CHostBrowser, CNeighbour, CRemote, CShakeNeighbour, CUploadTransfer, and CUploadTransferHTTP.

Definition at line 400 of file Connection.cpp.

References CBuffer::Add(), CSettings::sLive::BandwidthScale, TCPBandwidthMeter::bUnscaled, CStatistics::Current, CSettings::Live, m_hSocket, m_mInput, m_pInput, METER_LENGTH, METER_MINIMUM, METER_SECOND, TCPBandwidthMeter::nPosition, TCPBandwidthMeter::nTotal, TCPBandwidthMeter::pHistory, TCPBandwidthMeter::pLimit, TCPBandwidthMeter::pTimes, Settings, Statistics, TEMP_BUFFER, TCPBandwidthMeter::tLast, TCPBandwidthMeter::tLastAdd, and TCPBandwidthMeter::tLastSlot.

Referenced by DoRun(), CUploadTransfer::OnRead(), CShakeNeighbour::OnRead(), CRemote::OnRead(), CNeighbour::OnRead(), CHostBrowser::OnRead(), CHandshake::OnRead(), CEDClient::OnRead(), CDownloadTransferHTTP::OnRead(), CDownloadTransferFTP::CFTPRETR::OnRead(), CDownloadTransferFTP::CFTPLIST::OnRead(), CDownloadTransferFTP::OnRead(), CChatSession::OnRead(), and CBTClient::OnRead().

BOOL CConnection::OnRun  )  [protected, virtual]
 

Reimplemented in CBTClient, CChatSession, CDownloadTransfer, CDownloadTransferBT, CDownloadTransferED2K, CDownloadTransferFTP, CDownloadTransferHTTP, CEDClient, CEDNeighbour, CG1Neighbour, CG2Neighbour, CHandshake, CHostBrowser, CNeighbour, CRemote, CShakeNeighbour, CUploadTransfer, CUploadTransferBT, CUploadTransferED2K, and CUploadTransferHTTP.

Definition at line 390 of file Connection.cpp.

Referenced by DoRun(), CUploadTransfer::OnRun(), CHostBrowser::OnRun(), CDownloadTransfer::OnRun(), and CBTClient::OnRun().

BOOL CConnection::OnWrite  )  [protected, virtual]
 

Reimplemented in CBTClient, CEDClient, CG1Neighbour, CG2Neighbour, CNeighbour, CUploadTransfer, and CUploadTransferHTTP.

Definition at line 533 of file Connection.cpp.

References CSettings::sLive::BandwidthScale, TCPBandwidthMeter::bUnscaled, CStatistics::Current, CSettings::Live, m_hSocket, m_mOutput, CBuffer::m_nLength, CBuffer::m_pBuffer, m_pOutput, METER_LENGTH, METER_MINIMUM, METER_SECOND, TCPBandwidthMeter::nPosition, TCPBandwidthMeter::nTotal, TCPBandwidthMeter::pHistory, TCPBandwidthMeter::pLimit, TCPBandwidthMeter::pTimes, CBuffer::Remove(), Settings, Statistics, CSettings::sUploads::ThrottleMode, TCPBandwidthMeter::tLast, TCPBandwidthMeter::tLastAdd, TCPBandwidthMeter::tLastSlot, and CSettings::Uploads.

Referenced by DoRun(), CHandshake::OnConnected(), CChatSession::OnConnected(), CRemote::OnHeadersComplete(), CChatSession::OnHeadersComplete(), CHandshake::OnRead(), CUploadTransfer::OnWrite(), CNeighbour::OnWrite(), CEDClient::OnWrite(), CBTClient::OnWrite(), CChatSession::Print(), QueueRun(), ReadHeaders(), CUploadTransferHTTP::RequestHostBrowse(), CChatSession::Send(), CHostBrowser::SendRequest(), CDownloadTransferHTTP::SendRequest(), and CUploadTransfer::StartSending().

void CConnection::QueueRun  ) 
 

Definition at line 366 of file Connection.cpp.

References m_nQueuedRun, and OnWrite().

Referenced by CNeighbour::DelayClose(), CG2Neighbour::Send(), CG1Neighbour::Send(), and CEDNeighbour::Send().

BOOL CConnection::ReadHeaders  ) 
 

Definition at line 743 of file Connection.cpp.

References m_pInput, m_sLastHeader, OnHeaderLine(), OnHeadersComplete(), OnWrite(), and CBuffer::ReadLine().

Referenced by CUploadTransferHTTP::OnRead(), CShakeNeighbour::OnRead(), CRemote::OnRead(), CHostBrowser::OnRead(), CDownloadTransferHTTP::OnRead(), and CChatSession::OnRead().

BOOL CConnection::SendMyAddress  ) 
 

Definition at line 858 of file Connection.cpp.

References CNetwork::IsListening(), CNetwork::m_pHost, m_pOutput, Network, and CBuffer::Print().

Referenced by CChatSession::OnConnected(), CUploadTransferHTTP::SendDefaultHeaders(), CShakeNeighbour::SendPrivateHeaders(), CShakeNeighbour::SendPublicHeaders(), and CDownloadTransferHTTP::SendRequest().

BOOL CConnection::StartsWith LPCTSTR  pszInput,
LPCTSTR  pszText
[static]
 

Definition at line 1148 of file Connection.cpp.

Referenced by CDownloadTransferHTTP::OnHeaderLine(), CUploadTransferHTTP::OnHeadersComplete(), CChatSession::OnText(), and CChatSession::ReadHandshake().

CString CConnection::URLDecode LPCTSTR  pszInput  )  [static]
 

Definition at line 1006 of file Connection.cpp.

References URLDecodeANSI(), and URLDecodeUnicode().

Referenced by CDownloadWithSources::AddSourceURL(), CRemote::GetKey(), CHandshake::OnAcceptGive(), CUploadTransferHTTP::OnHeaderLine(), CDownloadTransferHTTP::OnHeaderLine(), CIEProtocol::OnRequestRAZACOL(), CShareazaURL::ParseDonkeyFile(), CShareazaURL::ParseMagnet(), CShareazaURL::ParsePioletFile(), CShareazaURL::ParseShareazaFile(), CUploadTransferHTTP::ReadRequest(), CHostBrowser::StreamHTML(), and CVersionChecker::UndertakeRequest().

CString CConnection::URLDecodeANSI LPCTSTR  pszInput  )  [static]
 

Definition at line 1024 of file Connection.cpp.

References NULL.

Referenced by URLDecode().

CString CConnection::URLDecodeUnicode LPCTSTR  pszInput  )  [static]
 

Definition at line 1090 of file Connection.cpp.

Referenced by URLDecode().

CString CConnection::URLEncode LPCTSTR  pszInput  )  [static]
 

Definition at line 933 of file Connection.cpp.

References NULL.

Referenced by CURLExportDlg::OnCopy(), CURLCopyDlg::OnIncludeSelf(), CURLExportDlg::OnSave(), CShareazaURL::ParseShareazaFile(), CQueryHit::Resolve(), CDiscoveryServices::RunWebCacheUpdate(), CUploadTransferHTTP::SendDefaultHeaders(), CDownloadTransferHTTP::SendRequest(), and CFileExecutor::ShowBitziTicket().


Member Data Documentation

BOOL CConnection::m_bConnected
 

Definition at line 73 of file Connection.h.

Referenced by AcceptFrom(), AttachTo(), CConnection(), CEDClient::Close(), Close(), DoRun(), CChatCore::FindSession(), CEDClient::IsOnline(), CBTClient::OnDropped(), CEDClient::OnRun(), CDownloads::OnRun(), CBTClient::OnRun(), CChatWindows::OpenPrivate(), CDownloadSource::PushRequest(), and CDownloadTransferED2K::RunQueued().

BOOL CConnection::m_bInitiated
 

Definition at line 72 of file Connection.h.

Referenced by AcceptFrom(), AttachTo(), CConnection(), CShakeNeighbour::Close(), ConnectTo(), CNeighboursWithConnect::Maintain(), CChatSession::OnConnected(), CBTClient::OnHandshake1(), CBTClient::OnHandshake2(), OnHeaderLine(), CChatSession::OnHeaderLine(), CShakeNeighbour::OnHeadersComplete(), CShakeNeighbour::OnHeadersCompleteG1(), CShakeNeighbour::OnHeadersCompleteG2(), CNeighboursWithConnect::PeerPrune(), CShakeNeighbour::ReadResponse(), CUploadTransferHTTP::SendDefaultHeaders(), CShakeNeighbour::SendMinimalHeaders(), CShakeNeighbour::SendPrivateHeaders(), CShakeNeighbour::SendPublicHeaders(), and CDownloadTransferHTTP::SendRequest().

SOCKET CConnection::m_hSocket
 

Definition at line 79 of file Connection.h.

Referenced by AcceptFrom(), CTransfers::Add(), CEDClient::AttachDownload(), CShakeNeighbour::AttachTo(), CEDClient::AttachTo(), AttachTo(), CBTClient::AttachTo(), CHostBrowser::Browse(), CConnection(), CNeighbour::Close(), Close(), CEDClient::Connect(), CBTClient::Connect(), CShakeNeighbour::ConnectTo(), CEDNeighbour::ConnectTo(), ConnectTo(), DoRun(), CChatCore::FindSession(), CDownloadWithTransfers::OnAcceptPush(), CHostBrowser::OnDropped(), CChatSession::OnDropped(), CShakeNeighbour::OnHandshakeComplete(), CHostBrowser::OnPush(), CHandshake::OnPush(), OnRead(), CEDClient::OnRunEx(), OnWrite(), CHandshake::Push(), CTransfers::Remove(), CChatCore::Remove(), CEDClient::Send(), CBTClient::Send(), CHostBrowser::SendRequest(), CHostBrowser::Stop(), CBTClient::~CBTClient(), CChatSession::~CChatSession(), CEDClient::~CEDClient(), and CTransfer::~CTransfer().

TCPBandwidthMeter CConnection::m_mInput
 

Definition at line 88 of file Connection.h.

Referenced by CDownloadTransferHTTP::AcceptPush(), CUploadTransferHTTP::AttachTo(), AttachTo(), CDownloadTransferHTTP::Boost(), CDownloadTransferFTP::Boost(), CDownloadTransferED2K::Boost(), CDownloadTransferBT::Boost(), CDownloadTransfer::Boost(), CBTClient::CBTClient(), CConnection(), CEDClient::CEDClient(), CHandshake::CHandshake(), CRemote::CRemote(), DoRun(), CNeighbour::GetCompression(), CDownloadTransferFTP::GetMeasuredSpeed(), CDownloadTransferED2K::GetMeasuredSpeed(), CDownloadTransferBT::GetMeasuredSpeed(), CDownloadTransfer::GetMeasuredSpeed(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CDownloadTransferED2K::Initiate(), CEDClient::Merge(), CDownloadTransferBT::OnConnected(), CEDClient::OnDownloadClose(), CShakeNeighbour::OnHandshakeComplete(), CHostBrowser::OnHeadersComplete(), CDownloadTransferHTTP::OnHeadersComplete(), CNeighbourTipCtrl::OnPaint(), CDownloadTipCtrl::OnPaint(), CUploadTransfer::OnRead(), OnRead(), CNeighboursBase::OnRun(), CHostBrowser::OnRun(), CEDClient::OnRun(), CDownloadTransferHTTP::OnRun(), CDownloadTransferFTP::OnRun(), CBTClient::OnRun(), CDownloadTransferED2K::OnRunEx(), CDownloadTransferED2K::OnStartUpload(), CNeighbourTipCtrl::OnTimer(), CRemote::PageNetworkNetwork(), CHostBrowser::SendRequest(), CDownloadTransferED2K::SendSecondaryRequest(), and CNeighboursWnd::Update().

TCPBandwidthMeter CConnection::m_mOutput
 

Definition at line 89 of file Connection.h.

Referenced by CDownloadTransferHTTP::AcceptPush(), CUploadTransferHTTP::AttachTo(), AttachTo(), CDownloadTransferHTTP::Boost(), CDownloadTransferFTP::Boost(), CDownloadTransfer::Boost(), CBTClient::CBTClient(), CConnection(), CEDClient::CEDClient(), CHandshake::CHandshake(), CRemote::CRemote(), CUploadTransferED2K::CUploadTransferED2K(), DoRun(), CNeighbour::GetCompression(), CUploadTransferED2K::GetMeasuredSpeed(), CUploadTransferBT::GetMeasuredSpeed(), CUploadTransfer::GetMeasuredSpeed(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CEDClient::Merge(), CUploadTransferED2K::OnConnected(), CUploadTransferBT::OnConnected(), CShakeNeighbour::OnHandshakeComplete(), CNeighbourTipCtrl::OnPaint(), CUploadTransferHTTP::OnRun(), CRemote::OnRun(), CNeighboursBase::OnRun(), CEDClient::OnRun(), CBTClient::OnRun(), CUploadTransferED2K::OnRunEx(), CNeighbourTipCtrl::OnTimer(), CEDClient::OnUploadClose(), CUploadTransfer::OnWrite(), OnWrite(), CRemote::PageNetworkNetwork(), CHostBrowser::SendRequest(), CUploadTransferED2K::StartNextRequest(), CUploadTransfer::StartSending(), and CNeighboursWnd::Update().

int CConnection::m_nQueuedRun
 

Definition at line 90 of file Connection.h.

Referenced by CConnection(), DoRun(), and QueueRun().

SOCKADDR_IN CConnection::m_pHost
 

Definition at line 70 of file Connection.h.

Referenced by AcceptFrom(), CUploads::AllowMoreTo(), AttachTo(), CCrawlSession::Bootstrap(), CUploadTransfer::CalculateRating(), CUploads::CanUploadFileTo(), CHandshake::CHandshake(), CDownloadSource::CheckDonkey(), CShakeNeighbour::Close(), CEDClient::Connect(), CChatSession::Connect(), CShakeNeighbour::ConnectTo(), CEDNeighbour::ConnectTo(), CEDClient::ConnectTo(), ConnectTo(), CLocalSearch::CreatePacketG2(), CNeighboursWithG2::CreateQueryWeb(), CDownloadWithTorrent::CreateTorrentTransfer(), CUploadFile::CUploadFile(), CUploadTransferBT::CUploadTransferBT(), CUploadTransferED2K::CUploadTransferED2K(), CUploads::EnforcePerHostLimit(), CEDClient::Equals(), CManagedSearch::ExecuteG2Mesh(), CManagedSearch::ExecuteNeighbours(), CChatWindows::FindPrivate(), CChatCore::FindSession(), CNeighboursBase::Get(), CUploadFiles::GetFile(), CUploadTransferHTTP::GetNeighbourList(), CEDClient::GetSourceURL(), CDownloadTransferED2K::Initiate(), CDownloadTransferBT::Initiate(), CHandshakes::IsConnectedTo(), CUploads::OnAccept(), CHandshake::OnAcceptGive(), CHandshake::OnAcceptPush(), CUploadTipCtrl::OnCalcSize(), CPrivateChatFrame::OnChatBrowse(), CPrivateChatFrame::OnChatPriority(), CDownloadTransferED2K::OnConnected(), CDownloadTransferBT::OnConnected(), CDatagrams::OnCrawlRequest(), CEDNeighbour::OnDropped(), CDownloadTransferED2K::OnFileComment(), CEDClient::OnFileRequest(), CEDClient::OnFileStatusRequest(), CEDNeighbour::OnFoundSources(), CBTClient::OnHandshake1(), CShakeNeighbour::OnHeaderLine(), CDownloadTransferHTTP::OnHeaderLine(), OnHeaderLine(), CChatSession::OnHeaderLine(), CUploadTransferHTTP::OnHeadersComplete(), CDownloadTransferHTTP::OnHeadersComplete(), CShakeNeighbour::OnHeadersCompleteG1(), CEDClient::OnHello(), CEDNeighbour::OnIdChange(), CG2Neighbour::OnKHL(), CG2Neighbour::OnLNI(), CEDClient::OnMessage(), CNeighboursWnd::OnNeighboursCopy(), CChatSession::OnOpenWindow(), CG1Neighbour::OnPing(), CG1Neighbour::OnPong(), CHostBrowser::OnPush(), CG2Neighbour::OnQuery(), CG2Neighbour::OnQueryAck(), CG2Neighbour::OnQueryKeyAns(), CG2Neighbour::OnQueryKeyReq(), CUploadTransferED2K::OnReask(), CShakeNeighbour::OnRun(), CG2Neighbour::OnRun(), CEDNeighbour::OnSearchResults(), CUploadsWnd::OnSecurityBan(), CEDNeighbour::OnServerIdent(), CEDNeighbour::OnServerList(), CEDNeighbour::OnServerStatus(), CUploadTransferHTTP::QueueRequest(), CDownloadTransferED2K::RunQueued(), CChatSession::SendChatMessage(), CUploadTransferHTTP::SendDefaultHeaders(), CEDClient::SendHello(), CG2Neighbour::SendKHL(), CShakeNeighbour::SendPublicHeaders(), CChatSession::SendPush(), CHostBrowser::SendRequest(), CEDNeighbour::SendSharedFiles(), CG2Neighbour::SendStartups(), CChatSession::Setup(), CHostBrowser::StreamHTML(), CNeighboursWnd::Update(), and CDownloadWithTorrent::UploadExists().

CBuffer* CConnection::m_pInput
 

Definition at line 80 of file Connection.h.

Referenced by AcceptFrom(), AttachTo(), CConnection(), Close(), ConnectTo(), CChatCore::FindSession(), CHandshake::OnAcceptGive(), CHandshake::OnAcceptPush(), CHostBrowser::OnDropped(), CChatSession::OnED2KMessage(), CBTClient::OnHandshake1(), CBTClient::OnHandshake2(), CUploadTransferHTTP::OnHeadersComplete(), CRemote::OnRead(), CNeighbour::OnRead(), CHostBrowser::OnRead(), CHandshake::OnRead(), CEDNeighbour::OnRead(), CEDClient::OnRead(), CDownloadTransferFTP::CFTPRETR::OnRead(), CDownloadTransferFTP::CFTPLIST::OnRead(), CDownloadTransferFTP::OnRead(), OnRead(), CBTClient::OnRead(), CG2Neighbour::ProcessPackets(), CG1Neighbour::ProcessPackets(), CHostBrowser::ReadContent(), CDownloadTransferHTTP::ReadContent(), CDownloadTransferHTTP::ReadFlush(), CChatSession::ReadHandshake(), ReadHeaders(), CDownloadTransferHTTP::ReadMetadata(), CChatSession::ReadPackets(), CChatSession::ReadPacketsED2K(), CUploadTransferHTTP::ReadRequest(), CShakeNeighbour::ReadResponse(), CHostBrowser::ReadResponseLine(), CDownloadTransferHTTP::ReadResponseLine(), CChatSession::ReadText(), CDownloadTransferHTTP::ReadTiger(), CDownloadTransferHTTP::StartNextFragment(), and CDownloadTransferFTP::StartNextFragment().

CBuffer* CConnection::m_pOutput
 

Definition at line 81 of file Connection.h.

Referenced by AcceptFrom(), AttachTo(), CConnection(), CG1Neighbour::CG1Neighbour(), Close(), ConnectTo(), CUploadTransferED2K::DispatchNextChunk(), CChatCore::FindSession(), CShakeNeighbour::OnConnected(), CHandshake::OnConnected(), CChatSession::OnConnected(), CRemote::OnHeadersComplete(), CChatSession::OnHeadersComplete(), CShakeNeighbour::OnHeadersCompleteG1(), CShakeNeighbour::OnHeadersCompleteG2(), CHostBrowser::OnRead(), CHandshake::OnRead(), CUploadTransferHTTP::OnRun(), CBTClient::OnRun(), CUploadTransferHTTP::OnWrite(), CNeighbour::OnWrite(), CG2Neighbour::OnWrite(), CG1Neighbour::OnWrite(), OnWrite(), CUploadTransferHTTP::OpenFileSendHeaders(), CChatSession::Print(), CUploadTransferHTTP::QueueRequest(), CUploadTransferHTTP::RequestHostBrowse(), CUploadTransferHTTP::RequestMetadata(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestTigerTreeDIME(), CUploadTransferHTTP::RequestTigerTreeRaw(), CG2Neighbour::Send(), CEDNeighbour::Send(), CEDClient::Send(), CChatSession::Send(), CBTClient::Send(), CDownloadTransferFTP::SendCommand(), CUploadTransferHTTP::SendDefaultHeaders(), CUploadTransferHTTP::SendFileHeaders(), CBTClient::SendHandshake(), CShakeNeighbour::SendHostHeaders(), CShakeNeighbour::SendMinimalHeaders(), SendMyAddress(), CChatSession::SendPacketsED2K(), CShakeNeighbour::SendPrivateHeaders(), CChatSession::SendPrivateMessage(), CShakeNeighbour::SendPublicHeaders(), CHostBrowser::SendRequest(), CDownloadTransferHTTP::SendRequest(), CUploadTransferHTTP::SendResponse(), CUploadTransferED2K::ServeRequests(), CUploadTransferBT::ServeRequests(), CDownloadTransferHTTP::StartNextFragment(), and CDownloadTransferFTP::StartNextFragment().

CString CConnection::m_sAddress
 

Definition at line 71 of file Connection.h.

Referenced by AcceptFrom(), CDownloadTransferHTTP::AcceptPush(), CUploadTransferHTTP::AttachTo(), CEDClient::AttachTo(), AttachTo(), CBTClient::AttachTo(), CHostBrowser::Browse(), CG1Neighbour::CG1Neighbour(), CG2Neighbour::CG2Neighbour(), CHandshake::CHandshake(), CUploadTransferED2K::CheckFinishedRequest(), CUploadTransferED2K::CheckRanking(), CUploadTransfer::Close(), CNeighbour::Close(), CEDClient::Connect(), CChatSession::Connect(), CBTClient::Connect(), CShakeNeighbour::ConnectTo(), CEDNeighbour::ConnectTo(), ConnectTo(), CNeighboursWithG2::CreateQueryWeb(), CUploadTransferBT::CUploadTransferBT(), CUploadTransferED2K::CUploadTransferED2K(), CNeighbour::DelayClose(), CUploads::EnforcePerHostLimit(), CChatCore::FindSession(), CUploadTransferHTTP::GetNeighbourList(), CDownloadTransferHTTP::Initiate(), CDownloadTransferFTP::Initiate(), CDownloadTransferED2K::Initiate(), CDownloadTransferBT::Initiate(), CUploadTransfer::LongTermAverage(), CBTClient::OnBeHandshake(), CG1Neighbour::OnBye(), CNeighbourTipCtrl::OnCalcSize(), CPrivateChatFrame::OnChatPriority(), CDownloadTransferBT::OnChoked(), CNeighbour::OnCommonHit(), CNeighbour::OnCommonQueryHash(), CUploadTransferHTTP::OnCompleted(), CDownloadTransferED2K::OnCompressedPart(), CShakeNeighbour::OnConnected(), CEDNeighbour::OnConnected(), CDownloadTransferHTTP::OnConnected(), CDownloadTransferFTP::OnConnected(), CDownloadTransferED2K::OnConnected(), CDownloadTransferBT::OnConnected(), CBTClient::OnConnected(), CPacketWnd::OnContextMenu(), CUploadTransferHTTP::OnDropped(), CUploadTransferED2K::OnDropped(), CNeighbour::OnDropped(), CHostBrowser::OnDropped(), CHandshake::OnDropped(), CEDClient::OnDropped(), CDownloadTransferHTTP::OnDropped(), CDownloadTransferFTP::OnDropped(), CDownloadTransferED2K::OnDropped(), CChatSession::OnDropped(), CBTClient::OnDropped(), CEDClient::OnEmuleInfo(), CDownloadTransferED2K::OnFileNotFound(), CEDClient::OnFileRequest(), CDownloadTransferED2K::OnFileStatus(), CEDClient::OnFileStatusRequest(), CEDNeighbour::OnFoundSources(), CBTClient::OnHandshake1(), CBTClient::OnHandshake2(), CShakeNeighbour::OnHandshakeComplete(), CDownloadTransferED2K::OnHashsetAnswer(), CEDClient::OnHashsetRequest(), CUploadTransferHTTP::OnHeaderLine(), CShakeNeighbour::OnHeaderLine(), CHostBrowser::OnHeaderLine(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadTransferFTP::OnHeaderLine(), CChatSession::OnHeaderLine(), CUploadTransferHTTP::OnHeadersComplete(), CHostBrowser::OnHeadersComplete(), CDownloadTransferHTTP::OnHeadersComplete(), CShakeNeighbour::OnHeadersCompleteG1(), CShakeNeighbour::OnHeadersCompleteG2(), CEDClient::OnHello(), CG1Neighbour::OnHit(), CEDNeighbour::OnIdChange(), CEDClient::OnMessage(), CNeighboursWnd::OnNeighboursCopy(), CBTClient::OnOnline(), CHostBrowser::OnPacket(), CG1Neighbour::OnPacket(), CEDClient::OnPacket(), CNeighbourTipCtrl::OnPaint(), CG2Neighbour::OnPing(), CG1Neighbour::OnPing(), CG1Neighbour::OnPong(), CG2Neighbour::OnPush(), CG1Neighbour::OnPush(), CChatSession::OnPush(), CG2Neighbour::OnQuery(), CG1Neighbour::OnQuery(), CG2Neighbour::OnQueryKeyAns(), CDownloadTransferED2K::OnQueueRank(), CDownloadTransferED2K::OnRankingInfo(), CUploadTransfer::OnRename(), CUploadTransferBT::OnRequest(), CUploadTransferED2K::OnRequestParts(), CNeighbour::OnRun(), CHostBrowser::OnRun(), CHandshake::OnRun(), CEDClient::OnRun(), CDownloadTransferHTTP::OnRun(), CDownloadTransferFTP::OnRun(), CChatSession::OnRun(), CBTClient::OnRun(), CUploadTransferED2K::OnRunEx(), CDownloadTransferED2K::OnRunEx(), CEDNeighbour::OnSearchResults(), CDownloadTransferED2K::OnSendingPart(), CEDNeighbour::OnServerIdent(), CEDNeighbour::OnServerList(), CEDNeighbour::OnServerMessage(), CEDClient::OnSourceAnswer(), CEDClient::OnSourceRequest(), CDownloadTransferBT::OnSourceResponse(), CDownloadTransferBT::OnUnchoked(), CUploadTransferED2K::OpenFile(), CUploadTransferBT::OpenFile(), CUploadTransferHTTP::OpenFileSendHeaders(), CRemote::PageNetworkNetwork(), CRemote::PageUploads(), CUploadsCtrl::PaintFile(), CDownloadsCtrl::PaintSource(), CUploadTransferHTTP::QueueRequest(), CHostBrowser::ReadContent(), CDownloadTransferHTTP::ReadContent(), CDownloadTransferHTTP::ReadFlush(), CChatSession::ReadHandshake(), CChatSession::ReadPacketsED2K(), CUploadTransferHTTP::ReadRequest(), CShakeNeighbour::ReadResponse(), CDownloadTransferHTTP::ReadResponseLine(), CUploadTransfer::Remove(), CUploadTransferED2K::Request(), CUploadTransferHTTP::RequestMetadata(), CUploadTransferHTTP::RequestPartialFile(), CUploadTransferHTTP::RequestPreview(), CUploadTransferHTTP::RequestSharedFile(), CUploadTransferHTTP::RequestTigerTreeDIME(), CUploadTransferHTTP::RequestTigerTreeRaw(), CDownloadTransferED2K::RunQueued(), CChatSession::SendChatMessage(), CDownloadTransferFTP::SendCommand(), CEDClient::SendCommentsPacket(), CDownloadTransferED2K::SendFragmentRequests(), CHostBrowser::SendPush(), CHostBrowser::SendRequest(), CDownloadTransferHTTP::SendRequest(), CDownloadTransferBT::SendRequests(), CDownloadTransferED2K::SendSecondaryRequest(), CUploadTransferBT::ServeRequests(), CUploadTransferBT::SetChoke(), CDownloadTransferED2K::SetQueueRank(), CDownloadTransferHTTP::StartNextFragment(), CDownloadTransferFTP::StartNextFragment(), CUploadTransferED2K::StartNextRequest(), CHostBrowser::Stop(), CHostBrowser::StreamPacketsG1(), and CNeighboursWnd::Update().

CString CConnection::m_sLastHeader
 

Definition at line 83 of file Connection.h.

Referenced by CDownloadTransferFTP::OnRead(), and ReadHeaders().

CString CConnection::m_sUserAgent
 

Reimplemented in CChatSession.

Definition at line 82 of file Connection.h.

Referenced by AttachTo(), CBTClient::CBTClient(), CDownloadTransferBT::CDownloadTransferBT(), CG1Neighbour::CG1Neighbour(), CG2Neighbour::CG2Neighbour(), CUploadTransferBT::CUploadTransferBT(), CUploadTransferED2K::CUploadTransferED2K(), CEDClient::DeriveSoftwareVersion(), CEDClient::DeriveVersion(), CBTClient::DetermineUserAgent(), CUploadTransferHTTP::GetNeighbourList(), IsAgentBlocked(), CShakeNeighbour::IsClientBad(), CShakeNeighbour::IsClientBanned(), CShakeNeighbour::IsClientObsolete(), CBTClient::OnBeHandshake(), CNeighbourTipCtrl::OnCalcSize(), CDownloadTransferED2K::OnConnected(), CNeighbour::OnDropped(), CBTClient::OnHandshake2(), CShakeNeighbour::OnHeaderLine(), CDownloadTransferHTTP::OnHeaderLine(), CDownloadTransferFTP::OnHeaderLine(), OnHeaderLine(), CUploadTransferHTTP::OnHeadersComplete(), CDownloadTransferHTTP::OnHeadersComplete(), CShakeNeighbour::OnHeadersCompleteG2(), CUploadTipCtrl::OnPaint(), CNeighbourTipCtrl::OnPaint(), CEDNeighbour::OnServerIdent(), CUploadTransferHTTP::OpenFileSendHeaders(), CRemote::PageNetworkNetwork(), CRemote::PageUploads(), CUploadsCtrl::PaintFile(), CQueryHashTable::PatchTo(), CUploadTransferHTTP::QueueRequest(), CUploadTransferHTTP::RequestHostBrowse(), CUploadTransferED2K::StartNextRequest(), and CNeighboursWnd::Update().

DWORD CConnection::m_tConnected
 

Definition at line 74 of file Connection.h.

Referenced by AcceptFrom(), CUploadTransferHTTP::AttachTo(), AttachTo(), CConnection(), CNeighbour::CNeighbour(), CEDClient::Connect(), ConnectTo(), DoRun(), CUploads::EnforcePerHostLimit(), CManagedSearch::ExecuteNeighbours(), CChatCore::FindSession(), CUploadTransferHTTP::GetNeighbourList(), CDownloadTransferFTP::Initiate(), CDownloadTransferED2K::Initiate(), CDownloadTransferBT::Initiate(), CNeighboursWithConnect::Maintain(), CDownloadTransferHTTP::OnConnected(), CDownloadTransferFTP::OnConnected(), CChatSession::OnConnected(), CNeighbour::OnDropped(), CChatSession::OnED2KMessage(), CChatSession::OnEstablished(), CShakeNeighbour::OnRun(), CNeighboursBase::OnRun(), CHostBrowser::OnRun(), CHandshake::OnRun(), CEDNeighbour::OnRun(), CEDClient::OnRun(), CDownloadTransferHTTP::OnRun(), CDownloadTransferFTP::OnRun(), CChatSession::OnRun(), CBTClient::OnRun(), CEDClient::OnRunEx(), CDownloadTransferED2K::OnRunEx(), CUploadsWnd::OnTimer(), CRemote::PageNetworkNetwork(), CHandshake::Push(), CChatSession::SendChatMessage(), CChatSession::SendPush(), and CNeighboursWnd::Update().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:04 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2