CatapultServer  v0.5.0.1 (Elephant)
NodeInteractionUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 
23 namespace catapult {
24  namespace ionet {
25  class NodeContainer;
26  struct NodeInteractionResult;
27  }
28 }
29 
30 namespace catapult { namespace extensions {
31 
33  void IncrementNodeInteraction(ionet::NodeContainer& nodes, const ionet::NodeInteractionResult& result);
34 }}
catapult::ionet::NodeContainer::modifier
NodeContainerModifier modifier()
Gets a write only view of the nodes.
Definition: NodeContainer.cpp:254
NodeInteractionResult.h
catapult::ionet::NodeInteractionResult::IdentityKey
Key IdentityKey
Identity key of the remote node.
Definition: NodeInteractionResult.h:42
catapult::ionet::NodeInteractionResult::Code
NodeInteractionResultCode Code
Interaction result code.
Definition: NodeInteractionResult.h:45
catapult::extensions::IncrementNodeInteraction
void IncrementNodeInteraction(ionet::NodeContainer &nodes, const ionet::NodeInteractionResult &result)
Increments the interaction counter indicated by result in the node container (nodes).
Definition: NodeInteractionUtils.cpp:27
catapult::ionet::NodeContainer
A collection of nodes.
Definition: NodeContainer.h:109
NodeContainer.h
NodeInteractionUtils.h
catapult::ionet::NodeContainerModifier::incrementSuccesses
void incrementSuccesses(const Key &identityKey)
Increments the number of successful interactions for the node identified by identityKey.
Definition: NodeContainer.cpp:179
catapult::ionet::NodeInteractionResult
Result from a node interaction.
Definition: NodeInteractionResult.h:28
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::ionet::NodeContainerModifier::incrementFailures
void incrementFailures(const Key &identityKey)
Increments the number of failed interactions for the node identified by identityKey.
Definition: NodeContainer.cpp:184