13 # include <arpa/inet.h>
16 static const char* ppszTypeName[] =
65 else if (*p1 < ' ' || *p1 > 0x7E)
114 for (i = 1; i <
ARRAYLEN(ppszTypeName); i++)
116 if (strType == ppszTypeName[i])
123 throw std::out_of_range(
strprintf(
"CInv::CInv(string, uint256) : unknown type '%s'", strType));
140 throw std::out_of_range(
strprintf(
"CInv::GetCommand() : type=%d unknown type",
type));
141 return ppszTypeName[
type];
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)
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