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

CCrawlSession Class Reference

#include <CrawlSession.h>

List of all members.

Public Member Functions

 CCrawlSession ()
virtual ~CCrawlSession ()
void Clear ()
void Bootstrap ()
void SendCrawl (SOCKADDR_IN *pHost)
int GetHubCount ()
int GetLeafCount ()
void OnRun ()
void OnCrawl (SOCKADDR_IN *pHost, CG2Packet *pPacket)

Public Attributes

BOOL m_bActive
CPtrList m_pNodes

Protected Member Functions

CCrawlNodeFind (IN_ADDR *pAddress, BOOL bCreate)

Friends

class CCrawlNode


Constructor & Destructor Documentation

CCrawlSession::CCrawlSession  ) 
 

Definition at line 44 of file CrawlSession.cpp.

References m_bActive.

CCrawlSession::~CCrawlSession  )  [virtual]
 

Definition at line 49 of file CrawlSession.cpp.

References Clear().


Member Function Documentation

void CCrawlSession::Bootstrap  ) 
 

Definition at line 70 of file CrawlSession.cpp.

References CNeighboursBase::GetIterator(), CNeighboursBase::GetNext(), CNeighbour::m_nNodeType, CNeighbour::m_nProtocol, CConnection::m_pHost, Neighbours, ntLeaf, PROTOCOL_G2, and SendCrawl().

Referenced by CSystemWnd::OnSystemTest().

void CCrawlSession::Clear  ) 
 

Definition at line 57 of file CrawlSession.cpp.

References m_pNodes.

Referenced by ~CCrawlSession().

CCrawlNode * CCrawlSession::Find IN_ADDR *  pAddress,
BOOL  bCreate
[protected]
 

Definition at line 172 of file CrawlSession.cpp.

References CCrawlNode, CCrawlNode::m_nUnique, CCrawlNode::m_pHost, m_pNodes, and NULL.

Referenced by OnCrawl(), and CCrawlNode::OnNode().

int CCrawlSession::GetHubCount  ) 
 

Definition at line 102 of file CrawlSession.cpp.

References CCrawlNode::m_nType, m_pNodes, and CCrawlNode::ntHub.

Referenced by CSystemWnd::OnSystemTest().

int CCrawlSession::GetLeafCount  ) 
 

Definition at line 115 of file CrawlSession.cpp.

References CCrawlNode::m_nType, m_pNodes, and CCrawlNode::ntLeaf.

Referenced by CSystemWnd::OnSystemTest().

void CCrawlSession::OnCrawl SOCKADDR_IN *  pHost,
CG2Packet pPacket
 

Definition at line 155 of file CrawlSession.cpp.

References Find(), m_bActive, CShareazaApp::Message(), MSG_TEMP, CCrawlNode::OnCrawl(), and theApp.

Referenced by CDatagrams::OnCrawlAnswer().

void CCrawlSession::OnRun  ) 
 

Definition at line 131 of file CrawlSession.cpp.

References m_bActive, CCrawlNode::m_nType, CCrawlNode::m_pHost, m_pNodes, CCrawlNode::m_tCrawled, CCrawlNode::m_tResponse, CCrawlNode::ntHub, NULL, and SendCrawl().

Referenced by CNetwork::OnRun().

void CCrawlSession::SendCrawl SOCKADDR_IN *  pHost  ) 
 

Definition at line 87 of file CrawlSession.cpp.

References Datagrams, G2_PACKET_CRAWL_REQ, CShareazaApp::Message(), MSG_TEMP, CG2Packet::New(), CDatagrams::Send(), theApp, and CG2Packet::WritePacket().

Referenced by Bootstrap(), and OnRun().


Friends And Related Function Documentation

friend class CCrawlNode [friend]
 

Definition at line 56 of file CrawlSession.h.

Referenced by Find().


Member Data Documentation

BOOL CCrawlSession::m_bActive
 

Definition at line 40 of file CrawlSession.h.

Referenced by CCrawlSession(), OnCrawl(), CNetwork::OnRun(), OnRun(), and CSystemWnd::OnSystemTest().

CPtrList CCrawlSession::m_pNodes
 

Definition at line 41 of file CrawlSession.h.

Referenced by Clear(), Find(), GetHubCount(), GetLeafCount(), and OnRun().


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