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

A description of a network node. More...

#include <Address.h>

Inheritance diagram for Network::Address:
P2p::Serializable

Public Member Functions

 Address (uint32_t time, uint64_t services, std::array< uint8_t, 16 > const &ipv6, uint16_t port)
 
 Address (uint8_t const *&in, size_t &size)
 
uint32_t time () const
 Returns the timestamp.
 
uint64_t services () const
 Returns the services.
 
uint8_t const * ipv6 () const
 Returns the IP address in IPV6 form.
 
uint8_t const * ipv4 () const
 Returns the IP address in IPV4 form.
 
int port () const
 Returns the port.
 
Overrides Serializable
virtual void serialize (std::vector< uint8_t > &out) const override
 
virtual json toJson () const override
 

Detailed Description

A description of a network node.

See also
VersionMessage, AddressMessage

Constructor & Destructor Documentation

Address::Address ( uint32_t  time,
uint64_t  services,
std::array< uint8_t, 16 > const &  ipv6,
uint16_t  port 
)
Parameters
timeTimestamp
servicesServices provided by the node
ipv6IP address
portPort
Address::Address ( 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: