Bitcoin Core  0.19.99
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | 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)
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
std::string GetCommand () const
std::string ToString () const

Public Attributes

int type
uint256 hash


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

Detailed Description

inv message data

Definition at line 375 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/2]

CInv::CInv ( )

Definition at line 159 of file protocol.cpp.

◆ CInv() [2/2]

CInv::CInv ( int  typeIn,
const uint256 hashIn 

Definition at line 165 of file protocol.cpp.

Member Function Documentation

◆ GetCommand()

std::string CInv::GetCommand ( ) const

Definition at line 172 of file protocol.cpp.

Here is the caller graph for this function:

◆ SerializationOp()

template<typename Stream , typename Operation >
void CInv::SerializationOp ( Stream &  s,
Operation  ser_action 

Definition at line 384 of file protocol.h.

Here is the call graph for this function:

◆ ToString()

std::string CInv::ToString ( ) const

Definition at line 189 of file protocol.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<

bool operator< ( const CInv a,
const CInv b 

Definition at line 167 of file protocol.cpp.

Member Data Documentation



Definition at line 381 of file protocol.h.

◆ hash

uint256 CInv::hash

Definition at line 397 of file protocol.h.

◆ type

int CInv::type

Definition at line 396 of file protocol.h.

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