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

CCrawlNode Class Reference

#include <CrawlSession.h>

List of all members.

Public Types

enum  { ntUnknown, ntHub, ntLeaf }

Public Member Functions

 CCrawlNode ()
virtual ~CCrawlNode ()
void OnCrawl (CCrawlSession *pSession, CG2Packet *pPacket)

Public Attributes

SOCKADDR_IN m_pHost
int m_nType
int m_nLeaves
CString m_sNick
float m_nLatitude
float m_nLongitude
CPtrList m_pNeighbours
DWORD m_nUnique
DWORD m_tDiscovered
DWORD m_tCrawled
DWORD m_tResponse

Protected Types

enum  { parseSelf, parseHub, parseLeaf }

Protected Member Functions

void OnNode (CCrawlSession *pSession, CG2Packet *pPacket, DWORD nPacket, int nType)


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ntUnknown 
ntHub 
ntLeaf 

Definition at line 83 of file CrawlSession.h.

anonymous enum [protected]
 

Enumeration values:
parseSelf 
parseHub 
parseLeaf 

Definition at line 91 of file CrawlSession.h.


Constructor & Destructor Documentation

CCrawlNode::CCrawlNode  ) 
 

Definition at line 196 of file CrawlSession.cpp.

References m_nLatitude, m_nLeaves, m_nLongitude, m_nType, m_pHost, m_tCrawled, m_tDiscovered, m_tResponse, ntUnknown, and NULL.

CCrawlNode::~CCrawlNode  )  [virtual]
 

Definition at line 210 of file CrawlSession.cpp.


Member Function Documentation

void CCrawlNode::OnCrawl CCrawlSession pSession,
CG2Packet pPacket
 

Definition at line 217 of file CrawlSession.cpp.

References CPacket::m_nPosition, m_tCrawled, m_tResponse, NULL, OnNode(), parseHub, parseLeaf, parseSelf, and CG2Packet::ReadPacket().

Referenced by CCrawlSession::OnCrawl().

void CCrawlNode::OnNode CCrawlSession pSession,
CG2Packet pPacket,
DWORD  nPacket,
int  nType
[protected]
 

Definition at line 250 of file CrawlSession.cpp.

References CCrawlSession::Find(), m_nLatitude, m_nLeaves, m_nLongitude, CPacket::m_nPosition, m_nType, m_pHost, m_pNeighbours, m_sNick, m_tResponse, CShareazaApp::Message(), MSG_TEMP, ntHub, ntLeaf, NULL, parseSelf, CPacket::ReadLongBE(), CPacket::ReadLongLE(), CG2Packet::ReadPacket(), CPacket::ReadShortBE(), CG2Packet::ReadString(), and theApp.

Referenced by OnCrawl().


Member Data Documentation

float CCrawlNode::m_nLatitude
 

Definition at line 73 of file CrawlSession.h.

Referenced by CCrawlNode(), and OnNode().

int CCrawlNode::m_nLeaves
 

Definition at line 71 of file CrawlSession.h.

Referenced by CCrawlNode(), and OnNode().

float CCrawlNode::m_nLongitude
 

Definition at line 74 of file CrawlSession.h.

Referenced by CCrawlNode(), and OnNode().

int CCrawlNode::m_nType
 

Definition at line 70 of file CrawlSession.h.

Referenced by CCrawlNode(), CCrawlSession::GetHubCount(), CCrawlSession::GetLeafCount(), OnNode(), and CCrawlSession::OnRun().

DWORD CCrawlNode::m_nUnique
 

Definition at line 78 of file CrawlSession.h.

Referenced by CCrawlSession::Find().

SOCKADDR_IN CCrawlNode::m_pHost
 

Definition at line 69 of file CrawlSession.h.

Referenced by CCrawlNode(), CCrawlSession::Find(), OnNode(), and CCrawlSession::OnRun().

CPtrList CCrawlNode::m_pNeighbours
 

Definition at line 76 of file CrawlSession.h.

Referenced by OnNode().

CString CCrawlNode::m_sNick
 

Definition at line 72 of file CrawlSession.h.

Referenced by OnNode().

DWORD CCrawlNode::m_tCrawled
 

Definition at line 80 of file CrawlSession.h.

Referenced by CCrawlNode(), OnCrawl(), and CCrawlSession::OnRun().

DWORD CCrawlNode::m_tDiscovered
 

Definition at line 79 of file CrawlSession.h.

Referenced by CCrawlNode().

DWORD CCrawlNode::m_tResponse
 

Definition at line 81 of file CrawlSession.h.

Referenced by CCrawlNode(), OnCrawl(), OnNode(), and CCrawlSession::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