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

An address message. More...

#include <AddressMessage.h>

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

Public Member Functions

 AddressMessage (std::vector< Address > const &addresses)
 
 AddressMessage (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

std::vector< Addressaddresses_
 Node descriptions.
 

Static Public Attributes

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

Detailed Description

An address message.

Provides information on known nodes of the network. Non-advertised nodes should be forgotten after typically 3 hours.

Constructor & Destructor Documentation

AddressMessage::AddressMessage ( std::vector< Address > const &  addresses)
Parameters
addressesVector of node decriptions
AddressMessage::AddressMessage ( 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: