CatapultServer
v0.5.0.1 (Elephant)
|
Connection state unique to a node and connection identifier.
Definition: NodeInfo.h:59
static auto PayloadStart(T &derived)
Gets the start of the variable data part of derived.
Definition: TrailingVariableDataLayout.h:39
Key IdentityKey
Node unique identifier.
Definition: PackedNodeInfo.h:76
Node interactions.
Definition: PackedNodeInfo.h:56
uint32_t NumConsecutiveFailures
Number of consecutive failed connections.
Definition: NodeInfo.h:74
void Update(const ConnectionState &connectionState)
Updates values with corresponding values from connectionState.
Definition: PackedNodeInfo.h:48
uint32_t BanAge
Definition: NodeInfo.h:78
uint32_t NumConsecutiveFailures
Number of consecutive failed connections.
Definition: PackedNodeInfo.h:40
uint32_t NumSuccesses
Number of successful interactions.
Definition: PackedNodeInfo.h:59
NodeSource Source
Node source.
Definition: PackedNodeInfo.h:79
PackedConnectionState * ConnectionStatesPtr()
Returns a pointer to the first connection state contained in this node info.
Definition: PackedNodeInfo.h:96
Information about a node and its interactions.
Definition: PackedNodeInfo.h:73
uint32_t BanAge
Definition: PackedNodeInfo.h:44
void Update(const NodeInteractions &interactions)
Updates values with corresponding values from interactions.
Definition: PackedNodeInfo.h:66
uint32_t NumSuccesses
Number of successful interactions.
Definition: NodeInteractionsContainer.h:43
NodeSource
Definition: NodeInfo.h:47
Node interactions.
Definition: NodeInteractionsContainer.h:29
static constexpr uint64_t CalculateRealSize(const PackedNodeInfo &nodeInfo) noexcept
Calculates the real size of nodeInfo.
Definition: PackedNodeInfo.h:102
uint32_t NumFailures
Number of failed interactions.
Definition: NodeInteractionsContainer.h:46
uint8_t ConnectionStatesCount
Number of connection states.
Definition: PackedNodeInfo.h:85
const PackedConnectionState * ConnectionStatesPtr() const
Returns a const pointer to the first connection state contained in this node info.
Definition: PackedNodeInfo.h:91
Definition: AddressExtractionExtension.cpp:28
Connection state unique to a node and connection identifier.
Definition: PackedNodeInfo.h:30
ServiceIdentifier ServiceId
Connection identifier.
Definition: PackedNodeInfo.h:33
static const PackedConnectionState * ToTypedPointer(const uint8_t *pData)
Gets a typed pointer to the variable data pData.
Definition: TrailingVariableDataLayout.h:44
uint32_t NumFailures
Number of failed interactions.
Definition: PackedNodeInfo.h:62
PackedNodeInteractions Interactions
Node interactions.
Definition: PackedNodeInfo.h:82
uint32_t Age
Definition: PackedNodeInfo.h:37
uint32_t Age
Definition: NodeInfo.h:71
Definition: TrailingVariableDataLayout.h:31