CConnman::ForNode

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

Synopsis

Declared in <net.h>

[[requires_capability(0x7fb96f52eb68), requires_capability(0x7fb96edb6d78), requires_capability(0x7fb9675da1b8), requires_capability(0x7fb96b4f1838), requires_capability(0x7fb95f2f2d38), requires_capability(0x7fb96d934038), requires_capability(0x7fb95f1f1408), requires_capability(0x7fb95f798318), requires_capability(0x7fb964e14668), requires_capability(0x7fb96108a0e8), requires_capability(0x7fb96025caf8)]]
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.