|
Equity
Bitcoin Protocol Library
|
A description of a network node. More...
#include <Address.h>
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 |
A description of a network node.
| Address::Address | ( | uint32_t | time, |
| uint64_t | services, | ||
| std::array< uint8_t, 16 > const & | ipv6, | ||
| uint16_t | port | ||
| ) |
| time | Timestamp |
| services | Services provided by the node |
| ipv6 | IP address |
| port | Port |
| Address::Address | ( | uint8_t const *& | in, |
| size_t & | size | ||
| ) |
| [in,out] | in | pointer to the next byte to deserialize |
| [in,out] | size | number of bytes remaining in the serialized stream |
1.8.11