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

A get-data message. More...

#include <GetDataMessage.h>

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

Public Member Functions

 GetDataMessage (InventoryList const &inventory)
 
 GetDataMessage (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 items requested.
 

Static Public Attributes

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

Detailed Description

A get-data message.

The get-data message is sent in response to an inventory message in order to retrieve the content of a specific object, and is usually sent after receiving an inventory message, after filtering known elements.

See also
InventoryMessage

Constructor & Destructor Documentation

GetDataMessage::GetDataMessage ( InventoryList const &  inventory)
Parameters
inventoryrequested items
GetDataMessage::GetDataMessage ( 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: