CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace nodediscovery {
67 const std::shared_ptr<thread::IoThreadPool>& pPool,
bool isResponseCompatible(const ionet::Node &requestNode, const ionet::Node &responseNode) const
Returns true if requestNode and responseNode are compatible nodes.
Definition: NodePingRequestor.h:38
std::unique_ptr< RemoteNodeApi > CreateRemoteNodeApi(ionet::PacketIo &io)
Creates a node api for interacting with a remote node with the specified io.
Definition: RemoteNodeApi.cpp:87
Node ping response compatibility checker.
Definition: NodePingRequestor.h:29
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
Settings used to configure connections.
Definition: ConnectionSettings.h:31
static thread::future< ResponseType > CreateFuture(ionet::PacketIo &packetIo)
Definition: NodePingRequestor.h:56
const Key & identityKey() const
Gets the unique identifier (a public key).
Definition: Node.cpp:60
def warning(*args)
Definition: colorPrint.py:10
bool IsNodeCompatible(const ionet::Node &node, model::NetworkIdentifier networkIdentifier, const Key &identityKey)
Determines if node is compatible with expected network (networkIdentifier) and identity (identityKey)...
Definition: NodePingUtils.cpp:52
Definition: BriefServerRequestor.h:48
model::NetworkIdentifier m_networkIdentifier
Definition: NodePingRequestor.h:47
An interface for reading and writing packets.
Definition: PacketIo.h:31
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
std::shared_ptr< NodePingRequestor > CreateNodePingRequestor(const std::shared_ptr< thread::IoThreadPool > &pPool, const crypto::KeyPair &keyPair, const net::ConnectionSettings &settings, model::NetworkIdentifier networkIdentifier)
Definition: NodePingRequestor.cpp:25
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
static constexpr auto Friendly_Name
Definition: NodePingRequestor.h:54
NodePingResponseCompatibilityChecker(model::NetworkIdentifier networkIdentifier)
Creates a checker around networkIdentifier.
Definition: NodePingRequestor.h:32
ionet::Node Node
Definition: PacketWriters.cpp:45
Definition: AddressExtractionExtension.cpp:28
A node in the catapult network.
Definition: Node.h:82
Node ping request policy.
Definition: NodePingRequestor.h:51