11 # include <arpa/inet.h>
63 else if (*p1 < ' ' || *p1 > 0x7E)
121 throw std::out_of_range(
strprintf(
"CInv::CInv(string, uint256) : unknown type '%s'", strType));
138 throw std::out_of_range(
strprintf(
"CInv::GetCommand() : type=%d unknown type",
type));
static const char * ppszTypeName[]
const char * GetCommand() const
#define MESSAGE_START_SIZE
A combination of a network address (CNetAddr) and a (TCP) port.
bool operator<(const CInv &a, const CInv &b)
static const unsigned int MAX_SIZE
const CChainParams & Params()
Return the currently selected parameters.
void * memcpy(void *a, const void *b, size_t c)
std::string ToString() const
std::string ToString() const