Bitcoin ABC  0.29.1
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

std::chrono::seconds GetTimeout ()
 
void BeginMessage (const char *pszCommand)
 
void AbortMessage ()
 
void EndMessage ()
 
void Send ()
 
void PushVersion ()
 
bool ProcessMessages ()
 

Private Attributes

std::unique_ptr< Socksock
 
CDataStream vSend
 
CDataStream vRecv
 
uint32_t nHeaderStart
 
uint32_t nMessageStart
 
int nVersion
 
std::string strSubVer
 
int nStartingHeight
 
std::vector< CAddress > * vAddr
 
int ban
 
NodeSeconds doneAfter
 
CService you
 
ServiceFlags yourServices
 

Friends

class ::CSeederNodeTest
 

Detailed Description

Definition at line 37 of file bitcoin.h.

Constructor & Destructor Documentation

◆ CSeederNode()

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

Definition at line 188 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 78 of file bitcoin.h.

◆ GetClientSubVersion()

std::string CSeederNode::GetClientSubVersion ( )
inline

Definition at line 82 of file bitcoin.h.

◆ GetClientVersion()

int CSeederNode::GetClientVersion ( )
inline

Definition at line 80 of file bitcoin.h.

◆ GetServices()

uint64_t CSeederNode::GetServices ( )
inline

Definition at line 86 of file bitcoin.h.

◆ GetStartingHeight()

int CSeederNode::GetStartingHeight ( )
inline

Definition at line 84 of file bitcoin.h.

◆ GetTimeout()

std::chrono::seconds CSeederNode::GetTimeout ( )
inlineprivate

Definition at line 55 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 126 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 199 of file bitcoin.cpp.

Here is the call graph for this function:

◆ Send()

void CSeederNode::Send ( )
private

Definition at line 23 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 38 of file bitcoin.h.

Member Data Documentation

◆ ban

int CSeederNode::ban
private

Definition at line 50 of file bitcoin.h.

◆ doneAfter

NodeSeconds CSeederNode::doneAfter
private

Definition at line 51 of file bitcoin.h.

◆ nHeaderStart

uint32_t CSeederNode::nHeaderStart
private

Definition at line 44 of file bitcoin.h.

◆ nMessageStart

uint32_t CSeederNode::nMessageStart
private

Definition at line 45 of file bitcoin.h.

◆ nStartingHeight

int CSeederNode::nStartingHeight
private

Definition at line 48 of file bitcoin.h.

◆ nVersion

int CSeederNode::nVersion
private

Definition at line 46 of file bitcoin.h.

◆ sock

std::unique_ptr<Sock> CSeederNode::sock
private

Definition at line 41 of file bitcoin.h.

◆ strSubVer

std::string CSeederNode::strSubVer
private

Definition at line 47 of file bitcoin.h.

◆ vAddr

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

Definition at line 49 of file bitcoin.h.

◆ vRecv

CDataStream CSeederNode::vRecv
private

Definition at line 43 of file bitcoin.h.

◆ vSend

CDataStream CSeederNode::vSend
private

Definition at line 42 of file bitcoin.h.

◆ you

CService CSeederNode::you
private

Definition at line 52 of file bitcoin.h.

◆ yourServices

ServiceFlags CSeederNode::yourServices
private

Definition at line 53 of file bitcoin.h.


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