12 # include <arpa/inet.h>
15 static const char* ppszTypeName[] =
64 else if (*p1 < ' ' || *p1 > 0x7E)
113 for (i = 1; i <
ARRAYLEN(ppszTypeName); i++)
115 if (strType == ppszTypeName[i])
122 throw std::out_of_range(
strprintf(
"CInv::CInv(string, uint256) : unknown type '%s'", strType.c_str()));
139 throw std::out_of_range(
strprintf(
"CInv::GetCommand() : type=%d unknown type",
type));
140 return ppszTypeName[
type];
#define strprintf(format,...)
const char * GetCommand() const
unsigned long long uint64
A combination of a network address (CNetAddr) and a (TCP) port.
bool operator<(const CInv &a, const CInv &b)
std::string ToString() const
std::string ToString() const