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

A block message. More...

#include <BlockMessage.h>

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

Public Member Functions

 BlockMessage (Equity::Block const &block)
 
 BlockMessage (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

Equity::Block block_
 A block.
 

Static Public Attributes

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

Detailed Description

A block message.

The block message contains a block and is sent in response to a getdata message which requests information from a block hash.

Constructor & Destructor Documentation

BlockMessage::BlockMessage ( Equity::Block const &  block)
Parameters
blocka block
BlockMessage::BlockMessage ( 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: