Dash Core  0.12.2.1
P2P Digital Currency
CInv Class Reference

#include <protocol.h>

Public Member Functions

 CInv ()
 
 CInv (int typeIn, const uint256 &hashIn)
 
 CInv (const std::string &strType, const uint256 &hashIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
bool IsKnownType () const
 
const char * GetCommand () const
 
std::string ToString () const
 

Public Attributes

 ADD_SERIALIZE_METHODS
 
int type
 
uint256 hash
 

Friends

bool operator< (const CInv &a, const CInv &b)
 

Detailed Description

inv message data

Definition at line 314 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/3]

CInv::CInv ( )

Definition at line 221 of file protocol.cpp.

◆ CInv() [2/3]

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

Definition at line 227 of file protocol.cpp.

◆ CInv() [3/3]

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

Definition at line 233 of file protocol.cpp.

Member Function Documentation

◆ GetCommand()

const char * CInv::GetCommand ( ) const

Definition at line 259 of file protocol.cpp.

Referenced by ProcessGetData(), and ToString().

◆ IsKnownType()

bool CInv::IsKnownType ( ) const

Definition at line 254 of file protocol.cpp.

Referenced by GetCommand(), ProcessGetData(), and ProcessMessage().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CInv::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 324 of file protocol.h.

◆ ToString()

std::string CInv::ToString ( ) const

Friends And Related Function Documentation

◆ operator<

bool operator< ( const CInv a,
const CInv b 
)
friend

Definition at line 249 of file protocol.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CInv::ADD_SERIALIZE_METHODS

Definition at line 321 of file protocol.h.

◆ hash

◆ type


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