CNeighbour Class Reference

#include <Neighbour.h>

Inheritance diagram for CNeighbour:

Inheritance graph
[legend]
Collaboration diagram for CNeighbour:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CNeighbour (PROTOCOLID nProtocol)
 CNeighbour (PROTOCOLID nProtocol, CNeighbour *pBase)
virtual ~CNeighbour ()
virtual BOOL Send (CPacket *pPacket, BOOL bRelease=TRUE, BOOL bBuffered=FALSE)
virtual void Close (UINT nError=IDS_CONNECTION_CLOSED)
void DelayClose (UINT nError=0)
virtual BOOL SendQuery (CQuerySearch *pSearch, CPacket *pPacket, BOOL bLocal)
DWORD GetMaxTTL () const
void GetCompression (float *pnInRate, float *pnOutRate)

Public Attributes

DWORD m_nRunCookie
DWORD m_nUnique
PROTOCOLID m_nProtocol
NrsState m_nState
CVendorm_pVendor
Hashes::Guid m_oGUID
CGProfilem_pProfile
Hashes::Guid m_oMoreResultsGUID
BOOL m_bAutomatic
BOOL m_bShareaza
NrsNode m_nNodeType
BOOL m_bQueryRouting
BOOL m_bPongCaching
BOOL m_bVendorMsg
BOOL m_bGGEP
DWORD m_tLastQuery
BOOL m_bObsoleteClient
BOOL m_bBadClient
DWORD m_nDegree
DWORD m_nMaxTTL
BOOL m_bDynamicQuerying
BOOL m_bUltrapeerQueryRouting
CString m_sLocalePref
BOOL m_bRequeries
BOOL m_bExtProbes
DWORD m_nInputCount
DWORD m_nOutputCount
DWORD m_nDropCount
DWORD m_nLostCount
DWORD m_nOutbound
DWORD m_nFileCount
DWORD m_nFileVolume
CQueryHashTablem_pQueryTableRemote
CQueryHashTablem_pQueryTableLocal

Protected Member Functions

virtual BOOL OnRun ()
virtual void OnDropped (BOOL bError)
virtual BOOL OnRead ()
virtual BOOL OnWrite ()
virtual BOOL OnCommonHit (CPacket *pPacket)
virtual BOOL OnCommonQueryHash (CPacket *pPacket)

Protected Attributes

DWORD m_tLastPacket
CBufferm_pZInput
CBufferm_pZOutput
DWORD m_nZInput
DWORD m_nZOutput
LPVOID m_pZSInput
LPVOID m_pZSOutput
BOOL m_bZFlush
DWORD m_tZOutput

Constructor & Destructor Documentation

CNeighbour::CNeighbour ( PROTOCOLID  nProtocol  ) 

CNeighbour::CNeighbour ( PROTOCOLID  nProtocol,
CNeighbour pBase 
)

CNeighbour::~CNeighbour (  )  [virtual]


Member Function Documentation

BOOL CNeighbour::Send ( CPacket pPacket,
BOOL  bRelease = TRUE,
BOOL  bBuffered = FALSE 
) [virtual]

Reimplemented in CEDNeighbour, CG1Neighbour, and CG2Neighbour.

void CNeighbour::Close ( UINT  nError = IDS_CONNECTION_CLOSED  )  [virtual]

Reimplemented in CShakeNeighbour.

void CNeighbour::DelayClose ( UINT  nError = 0  ) 

Reimplemented in CShakeNeighbour.

BOOL CNeighbour::SendQuery ( CQuerySearch pSearch,
CPacket pPacket,
BOOL  bLocal 
) [virtual]

Reimplemented in CEDNeighbour, CG1Neighbour, and CG2Neighbour.

BOOL CNeighbour::OnRun (  )  [protected, virtual]

Reimplemented from CConnection.

Reimplemented in CEDNeighbour, CG1Neighbour, CG2Neighbour, and CShakeNeighbour.

void CNeighbour::OnDropped ( BOOL  bError  )  [protected, virtual]

Reimplemented from CConnection.

Reimplemented in CEDNeighbour, and CShakeNeighbour.

BOOL CNeighbour::OnRead (  )  [protected, virtual]

Reimplemented from CConnection.

Reimplemented in CEDNeighbour, CG1Neighbour, CG2Neighbour, and CShakeNeighbour.

BOOL CNeighbour::OnWrite (  )  [protected, virtual]

Reimplemented from CConnection.

Reimplemented in CG1Neighbour, and CG2Neighbour.

BOOL CNeighbour::OnCommonHit ( CPacket pPacket  )  [protected, virtual]

BOOL CNeighbour::OnCommonQueryHash ( CPacket pPacket  )  [protected, virtual]

DWORD CNeighbour::GetMaxTTL (  )  const

void CNeighbour::GetCompression ( float *  pnInRate,
float *  pnOutRate 
)


Member Data Documentation

DWORD CNeighbour::m_nRunCookie

DWORD CNeighbour::m_nUnique

PROTOCOLID CNeighbour::m_nProtocol

NrsState CNeighbour::m_nState

CVendor* CNeighbour::m_pVendor

Hashes::Guid CNeighbour::m_oGUID

CGProfile* CNeighbour::m_pProfile

Hashes::Guid CNeighbour::m_oMoreResultsGUID

BOOL CNeighbour::m_bAutomatic

BOOL CNeighbour::m_bShareaza

NrsNode CNeighbour::m_nNodeType

BOOL CNeighbour::m_bQueryRouting

BOOL CNeighbour::m_bPongCaching

BOOL CNeighbour::m_bVendorMsg

BOOL CNeighbour::m_bGGEP

DWORD CNeighbour::m_tLastQuery

BOOL CNeighbour::m_bObsoleteClient

BOOL CNeighbour::m_bBadClient

DWORD CNeighbour::m_nDegree

DWORD CNeighbour::m_nMaxTTL

BOOL CNeighbour::m_bDynamicQuerying

BOOL CNeighbour::m_bUltrapeerQueryRouting

CString CNeighbour::m_sLocalePref

BOOL CNeighbour::m_bRequeries

BOOL CNeighbour::m_bExtProbes

DWORD CNeighbour::m_nInputCount

DWORD CNeighbour::m_nOutputCount

DWORD CNeighbour::m_nDropCount

DWORD CNeighbour::m_nLostCount

DWORD CNeighbour::m_nOutbound

DWORD CNeighbour::m_nFileCount

DWORD CNeighbour::m_nFileVolume

CQueryHashTable* CNeighbour::m_pQueryTableRemote

CQueryHashTable* CNeighbour::m_pQueryTableLocal

DWORD CNeighbour::m_tLastPacket [protected]

CBuffer* CNeighbour::m_pZInput [protected]

CBuffer* CNeighbour::m_pZOutput [protected]

DWORD CNeighbour::m_nZInput [protected]

DWORD CNeighbour::m_nZOutput [protected]

LPVOID CNeighbour::m_pZSInput [protected]

LPVOID CNeighbour::m_pZSOutput [protected]

BOOL CNeighbour::m_bZFlush [protected]

DWORD CNeighbour::m_tZOutput [protected]


The documentation for this class was generated from the following files:
Generated on Wed Aug 8 03:46:30 2007 for Shareaza by  doxygen 1.5.2