CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace ionet {
61 return sizeof(
NetworkNode) + node.HostSize + node.FriendlyNameSize;
A node's publicly accessible endpoint.
Definition: Node.h:35
uint16_t Port
Port.
Definition: NetworkNode.h:38
Information about a catapult node that is propagated through the network.
Definition: NetworkNode.h:30
Node UnpackNode(const NetworkNode &networkNode)
Unpacks a network node (networkNode) into a node model.
Definition: NetworkNode.cpp:59
const Key & identityKey() const
Gets the unique identifier (a public key).
Definition: Node.cpp:60
static constexpr uint64_t CalculateRealSize(const NetworkNode &node) noexcept
Calculates the real size of node.
Definition: NetworkNode.h:60
uint8_t FriendlyNameSize
Size of the friendly name in bytes.
Definition: NetworkNode.h:53
model::NetworkIdentifier NetworkIdentifier
Network identifier.
Definition: NetworkNode.h:41
uint8_t HostSize
Size of the host in bytes.
Definition: NetworkNode.h:50
NodeRoles Roles
Role(s).
Definition: NetworkNode.h:47
NodeRoles
A node's role.
Definition: NodeRoles.h:28
NodeVersion Version
Version.
Definition: NetworkNode.h:44
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
const NodeEndpoint & endpoint() const
Gets the endpoint.
Definition: Node.cpp:64
const NodeMetadata & metadata() const
Gets tne metadata.
Definition: Node.cpp:68
uint32_t Size
Size of the node.
Definition: NetworkNode.h:32
ionet::Node Node
Definition: PacketWriters.cpp:45
Definition: AddressExtractionExtension.cpp:28
std::unique_ptr< NetworkNode > PackNode(const Node &node)
Packs a node model into a network node.
Definition: NetworkNode.cpp:32
A node in the catapult network.
Definition: Node.h:82
Key IdentityKey
Unique node identifier (public key).
Definition: NetworkNode.h:35