5#ifndef BITCOIN_SEEDER_BITCOIN_H
6#define BITCOIN_SEEDER_BITCOIN_H
8#include <chainparams.h>
38 friend class ::CSeederNodeTest;
41 std::unique_ptr<Sock>
sock;
const CChainParams & Params()
Return the currently selected parameters.
uint16_t GetDefaultPort() const
Double ended buffer combining vector and stream-like interfaces.
bool IsTor() const
Check whether this object represents a TOR address.
void BeginMessage(const char *pszCommand)
bool IsCheckpointVerified() const
std::string GetClientSubVersion()
std::vector< CAddress > * vAddr
ServiceFlags yourServices
PeerMessagingState ProcessMessage(std::string strCommand, CDataStream &recv)
std::chrono::seconds GetTimeout()
std::unique_ptr< Sock > sock
A combination of a network address (CNetAddr) and a (TCP) port.
RAII helper class that manages a socket.
ServiceFlags
nServices flags.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
static const unsigned int ADDR_SOFT_CAP
static uint16_t GetDefaultPort()
std::chrono::time_point< NodeClock, std::chrono::seconds > NodeSeconds