TARAXA
|
#include <Common.h>
Public Member Functions | |
virtual | ~Node ()=default |
Node (Node const &) | |
Node (Public _publicKey, NodeIPEndpoint const &_ip, PeerType _peerType=PeerType::Optional) | |
Node (NodeSpec const &_s, PeerType _peerType=PeerType::Optional) | |
NodeID const & | address () const |
NodeIPEndpoint | get_endpoint () const |
void | set_endpoint (NodeIPEndpoint endpoint) |
operator bool () const | |
Public Attributes | |
NodeID const | id |
std::atomic< PeerType > | peerType {PeerType::Optional} |
std::atomic< uint16_t > | external_udp_port |
Private Attributes | |
NodeIPEndpoint | endpoint_ |
std::shared_mutex | endpoint_mu_ |
|
virtualdefault |
|
inline |
dev::p2p::Node::Node | ( | NodeSpec const & | _s, |
PeerType | _peerType = PeerType::Optional |
||
) |
NodeIPEndpoint dev::p2p::Node::get_endpoint | ( | ) | const |
|
inlineexplicit |
void dev::p2p::Node::set_endpoint | ( | NodeIPEndpoint | endpoint | ) |
|
private |
|
mutableprivate |
std::atomic<uint16_t> dev::p2p::Node::external_udp_port |
std::atomic<PeerType> dev::p2p::Node::peerType {PeerType::Optional} |