CatapultServer
v0.5.0.1 (Elephant)
|
Classes | |
class | BatchPeersRequestor |
Creates a batch peers requestor. More... | |
struct | NodePingRequestPolicy |
Node ping request policy. More... | |
class | NodePingResponseCompatibilityChecker |
Node ping response compatibility checker. More... | |
class | PeersProcessor |
Processes peers received from a partner node. More... | |
Typedefs | |
using | NodePingRequestor = net::BriefServerRequestor< NodePingRequestPolicy, NodePingResponseCompatibilityChecker > |
A brief server requestor for requesting node ping information. More... | |
Functions | |
DECLARE_SERVICE_REGISTRAR() | NodeDiscovery (const ConstNetworkNodePointer &pLocalNetworkNode) |
DECLARE_SERVICE_REGISTRAR() | NodeDiscovery (const std::shared_ptr< const ionet::NetworkNode > &pLocalNetworkNode) |
std::shared_ptr< NodePingRequestor > | CreateNodePingRequestor (const std::shared_ptr< thread::IoThreadPool > &pPool, const crypto::KeyPair &keyPair, const net::ConnectionSettings &settings, model::NetworkIdentifier networkIdentifier) |
bool | TryParseNodePacket (const ionet::Packet &packet, ionet::Node &node) |
Tries to parse packet into node. More... | |
bool | TryParseNodesPacket (const ionet::Packet &packet, ionet::NodeSet &nodes) |
Tries to parse packet into nodes. More... | |
bool | IsNodeCompatible (const ionet::Node &node, model::NetworkIdentifier networkIdentifier, const Key &identityKey) |
Determines if node is compatible with expected network (networkIdentifier) and identity (identityKey). More... | |
ionet::NodeSet | SelectUnknownNodes (const ionet::NodeContainerView &view, const ionet::NodeSet &nodes) |
Filters nodes by returning all nodes not contained in view. More... | |
using catapult::nodediscovery::NodePingRequestor = typedef net::BriefServerRequestor<NodePingRequestPolicy, NodePingResponseCompatibilityChecker> |
A brief server requestor for requesting node ping information.
std::shared_ptr< NodePingRequestor > catapult::nodediscovery::CreateNodePingRequestor | ( | const std::shared_ptr< thread::IoThreadPool > & | pPool, |
const crypto::KeyPair & | keyPair, | ||
const net::ConnectionSettings & | settings, | ||
model::NetworkIdentifier | networkIdentifier | ||
) |
Creates a node ping requestor for a server with a key pair of keyPair and a network identified by networkIdentifier using pPool and configured with settings.
bool catapult::nodediscovery::IsNodeCompatible | ( | const ionet::Node & | node, |
model::NetworkIdentifier | networkIdentifier, | ||
const Key & | identityKey | ||
) |
Determines if node is compatible with expected network (networkIdentifier) and identity (identityKey).
DECLARE_SERVICE_REGISTRAR() catapult::nodediscovery::NodeDiscovery | ( | const ConstNetworkNodePointer & | pLocalNetworkNode | ) |
DECLARE_SERVICE_REGISTRAR() catapult::nodediscovery::NodeDiscovery | ( | const std::shared_ptr< const ionet::NetworkNode > & | pLocalNetworkNode | ) |
Creates a registrar for a node discovery service around pLocalNetworkNode.
ionet::NodeSet catapult::nodediscovery::SelectUnknownNodes | ( | const ionet::NodeContainerView & | view, |
const ionet::NodeSet & | nodes | ||
) |
Filters nodes by returning all nodes not contained in view.
bool catapult::nodediscovery::TryParseNodePacket | ( | const ionet::Packet & | packet, |
ionet::Node & | node | ||
) |
Tries to parse packet into node.
bool catapult::nodediscovery::TryParseNodesPacket | ( | const ionet::Packet & | packet, |
ionet::NodeSet & | nodes | ||
) |
Tries to parse packet into nodes.