![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
inv message data More...
#include <protocol.h>
Public Member Functions | |
CInv () | |
CInv (int typeIn, const uint256 &hashIn) | |
CInv (const std::string &strType, const uint256 &hashIn) | |
IMPLEMENT_SERIALIZE (READWRITE(type);READWRITE(hash);) friend bool operator<(const CInv &a | |
bool | IsKnownType () const |
const char * | GetCommand () const |
std::string | ToString () const |
void | print () const |
Public Attributes | |
const CInv & | b |
int | type |
uint256 | hash |
inv message data
Definition at line 105 of file protocol.h.
CInv::CInv | ( | ) |
Definition at line 97 of file protocol.cpp.
Definition at line 103 of file protocol.cpp.
CInv::CInv | ( | const std::string & | strType, |
const uint256 & | hashIn | ||
) |
Definition at line 109 of file protocol.cpp.
References ARRAYLEN, hash, ppszTypeName, strprintf, and type.
const char * CInv::GetCommand | ( | ) | const |
Definition at line 135 of file protocol.cpp.
References IsKnownType(), ppszTypeName, strprintf, and type.
Referenced by ProcessGetData(), and ToString().
bool CInv::IsKnownType | ( | ) | const |
Definition at line 130 of file protocol.cpp.
References ARRAYLEN, ppszTypeName, and type.
Referenced by GetCommand(), and ProcessGetData().
void CInv::print | ( | ) | const |
Definition at line 147 of file protocol.cpp.
References LogPrintf, and ToString().
std::string CInv::ToString | ( | ) | const |
Definition at line 142 of file protocol.cpp.
References GetCommand(), hash, strprintf, and base_uint< BITS >::ToString().
Referenced by CNode::AskFor(), print(), ProcessMessage(), and SendMessages().
const CInv& CInv::b |
Definition at line 118 of file protocol.h.
uint256 CInv::hash |
Definition at line 128 of file protocol.h.
Referenced by AlreadyHave(), CInv(), operator<(), ProcessGetData(), ProcessMessage(), SendMessages(), and ToString().
int CInv::type |
Definition at line 127 of file protocol.h.
Referenced by AlreadyHave(), CInv(), GetCommand(), IsKnownType(), operator<(), ProcessGetData(), ProcessMessage(), and SendMessages().