Bitcoin ABC  0.24.7
P2P Digital Currency
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CSeederNode Class Reference

#include <bitcoin.h>

Collaboration diagram for CSeederNode:
[legend]

Public Member Functions

 CSeederNode (const CService &ip, std::vector< CAddress > *vAddrIn)
 
bool Run ()
 
int GetBan ()
 
int GetClientVersion ()
 
std::string GetClientSubVersion ()
 
int GetStartingHeight ()
 
uint64_t GetServices ()
 

Protected Member Functions

PeerMessagingState ProcessMessage (std::string strCommand, CDataStream &recv)
 

Private Member Functions

int GetTimeout ()
 
void BeginMessage (const char *pszCommand)
 
void AbortMessage ()
 
void EndMessage ()
 
void Send ()
 
void PushVersion ()
 
bool ProcessMessages ()
 

Private Attributes

SOCKET sock
 
CDataStream vSend
 
CDataStream vRecv
 
uint32_t nHeaderStart
 
uint32_t nMessageStart
 
int nVersion
 
std::string strSubVer
 
int nStartingHeight
 
std::vector< CAddress > * vAddr
 
int ban
 
int64_t doneAfter
 
CAddress you
 

Friends

class ::CSeederNodeTest
 

Detailed Description

Definition at line 33 of file bitcoin.h.

Constructor & Destructor Documentation

◆ CSeederNode()

CSeederNode::CSeederNode ( const CService ip,
std::vector< CAddress > *  vAddrIn 
)

Definition at line 176 of file bitcoin.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ AbortMessage()

void CSeederNode::AbortMessage ( )
private

◆ BeginMessage()

void CSeederNode::BeginMessage ( const char *  pszCommand)
private

◆ EndMessage()

void CSeederNode::EndMessage ( )
private

◆ GetBan()

int CSeederNode::GetBan ( )
inline

Definition at line 73 of file bitcoin.h.

Here is the caller graph for this function:

◆ GetClientSubVersion()

std::string CSeederNode::GetClientSubVersion ( )
inline

Definition at line 77 of file bitcoin.h.

Here is the caller graph for this function:

◆ GetClientVersion()

int CSeederNode::GetClientVersion ( )
inline

Definition at line 75 of file bitcoin.h.

Here is the caller graph for this function:

◆ GetServices()

uint64_t CSeederNode::GetServices ( )
inline

Definition at line 81 of file bitcoin.h.

Here is the caller graph for this function:

◆ GetStartingHeight()

int CSeederNode::GetStartingHeight ( )
inline

Definition at line 79 of file bitcoin.h.

Here is the caller graph for this function:

◆ GetTimeout()

int CSeederNode::GetTimeout ( )
inlineprivate

Definition at line 50 of file bitcoin.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProcessMessage()

PeerMessagingState CSeederNode::ProcessMessage ( std::string  strCommand,
CDataStream recv 
)
protected

Definition at line 38 of file bitcoin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProcessMessages()

bool CSeederNode::ProcessMessages ( )
private

Definition at line 115 of file bitcoin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PushVersion()

void CSeederNode::PushVersion ( )
private

◆ Run()

bool CSeederNode::Run ( )

Definition at line 186 of file bitcoin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Send()

void CSeederNode::Send ( )
private

Definition at line 22 of file bitcoin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ::CSeederNodeTest

friend class ::CSeederNodeTest
friend

Definition at line 34 of file bitcoin.h.

Member Data Documentation

◆ ban

int CSeederNode::ban
private

Definition at line 46 of file bitcoin.h.

◆ doneAfter

int64_t CSeederNode::doneAfter
private

Definition at line 47 of file bitcoin.h.

◆ nHeaderStart

uint32_t CSeederNode::nHeaderStart
private

Definition at line 40 of file bitcoin.h.

◆ nMessageStart

uint32_t CSeederNode::nMessageStart
private

Definition at line 41 of file bitcoin.h.

◆ nStartingHeight

int CSeederNode::nStartingHeight
private

Definition at line 44 of file bitcoin.h.

◆ nVersion

int CSeederNode::nVersion
private

Definition at line 42 of file bitcoin.h.

◆ sock

SOCKET CSeederNode::sock
private

Definition at line 37 of file bitcoin.h.

◆ strSubVer

std::string CSeederNode::strSubVer
private

Definition at line 43 of file bitcoin.h.

◆ vAddr

std::vector<CAddress>* CSeederNode::vAddr
private

Definition at line 45 of file bitcoin.h.

◆ vRecv

CDataStream CSeederNode::vRecv
private

Definition at line 39 of file bitcoin.h.

◆ vSend

CDataStream CSeederNode::vSend
private

Definition at line 38 of file bitcoin.h.

◆ you

CAddress CSeederNode::you
private

Definition at line 48 of file bitcoin.h.


The documentation for this class was generated from the following files: