Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CInv Class Reference

inv message data More...

#include <protocol.h>

+ Collaboration diagram for CInv:

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 CInvb
 
int type
 
uint256 hash
 

Detailed Description

inv message data

Definition at line 105 of file protocol.h.

Constructor & Destructor Documentation

CInv::CInv ( )

Definition at line 97 of file protocol.cpp.

References hash, and type.

CInv::CInv ( int  typeIn,
const uint256 hashIn 
)

Definition at line 103 of file protocol.cpp.

References hash, and type.

CInv::CInv ( const std::string &  strType,
const uint256 hashIn 
)

Definition at line 109 of file protocol.cpp.

References ARRAYLEN, hash, ppszTypeName, strprintf, and type.

Member Function Documentation

const char * CInv::GetCommand ( ) const

Definition at line 135 of file protocol.cpp.

References IsKnownType(), ppszTypeName, strprintf, and type.

Referenced by ProcessGetData(), and ToString().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CInv::IMPLEMENT_SERIALIZE ( READWRITE(type);READWRITE(hash);  ) const
bool CInv::IsKnownType ( ) const

Definition at line 130 of file protocol.cpp.

References ARRAYLEN, ppszTypeName, and type.

Referenced by GetCommand(), and ProcessGetData().

+ Here is the caller graph for this function:

void CInv::print ( ) const

Definition at line 147 of file protocol.cpp.

References LogPrintf, and ToString().

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

const CInv& CInv::b

Definition at line 118 of file protocol.h.

uint256 CInv::hash
int CInv::type

The documentation for this class was generated from the following files: