CConnman::ForNode

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

Synopsis

Declared in <net.h>

[[requires_capability(0x7f950f5fe248), requires_capability(0x7f950ed86a78), requires_capability(0x7f950b48ece8), requires_capability(0x7f95034d1908), requires_capability(0x7f950e20ecd8), requires_capability(0x7f9527746978), requires_capability(0x7f950c323b08), requires_capability(0x7f950c23f738), requires_capability(0x7f95018b8ee8), requires_capability(0x7f950bd90d98), requires_capability(0x7f95065c8498)]]
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.