CConnman::ForNode

Invoke a callback on the node with the given id, if it is fully connected.

Synopsis

Declared in <net.h>

[[requires_capability(0x7ff36f780fa8), requires_capability(0x7ff36f467818), requires_capability(0x7ff37f406dd8), requires_capability(0x7ff377563ba8), requires_capability(0x7ff37b69f0a8), requires_capability(0x7ff37e1c6cd8), requires_capability(0x7ff379a7d228), requires_capability(0x7ff36f4a4268), requires_capability(0x7ff37bc14ec8), requires_capability(0x7ff3814a4e98), requires_capability(0x7ff3666cbf18)]]
bool
ForNode(
    NodeId id,
    std::function<bool(CNode*)> func);

Return Value

false if no fully connected node with that id exists, otherwise the callback's result.

Parameters

NameDescription
idthe id of the node to look up.
functhe callback to invoke; its return value is forwarded.