CConnman::ForNode

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

Synopsis

Declared in <net.h>

[[requires_capability(0x7fd74b3b67c8), requires_capability(0x7fd74af17438), requires_capability(0x7fd7574ec0e8), requires_capability(0x7fd74f4a74c8), requires_capability(0x7fd75f8717b8), requires_capability(0x7fd75930e638), requires_capability(0x7fd753e60378), requires_capability(0x7fd74d88f9e8), requires_capability(0x7fd755d43678), requires_capability(0x7fd7598a3588), requires_capability(0x7fd74c8f5da8)]]
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.