CConnman::ForNode

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

Synopsis

Declared in <net.h>

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.