Equity
Bitcoin Protocol Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Network::InventoryMessage Class Reference

An inventory message. More...

#include <InventoryMessage.h>

Inheritance diagram for Network::InventoryMessage:
Network::Message P2p::Serializable

Public Member Functions

 InventoryMessage (InventoryList const &inventory)
 
 InventoryMessage (uint8_t const *&in, size_t &size)
 
Overrides Serializable
virtual void serialize (std::vector< uint8_t > &out) const override
 
virtual json toJson () const override
 
- Public Member Functions inherited from Network::Message
 Message (char const *type)
 
std::string type () const
 Returns the type.
 

Public Attributes

InventoryList inventory_
 List of hashes.
 

Static Public Attributes

static char const TYPE [] = "inv"
 Message type.
 

Detailed Description

An inventory message.

Contains hashes corresponding to transactions and blocks. Can be sent unsolicited or in response to a get-blocks message.

See also
GetBlocksMessage

Constructor & Destructor Documentation

InventoryMessage::InventoryMessage ( InventoryList const &  inventory)
Parameters
inventorylist of hashes
InventoryMessage::InventoryMessage ( uint8_t const *&  in,
size_t &  size 
)
Parameters
[in,out]inpointer to the next byte to deserialize
[in,out]sizenumber of bytes remaining in the serialized stream

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