[#CConnman-ForNode] = xref:CConnman.adoc[CConnman]::ForNode :relfileprefix: ../ :mrdocs: Invoke a callback on the node with the given id, if it is fully connected. == Synopsis Declared in `<net.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[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( xref:NodeId-08.adoc[NodeId] id, std::function<bool(xref:CNode.adoc[CNode]*)> func); ---- == Return Value false if no fully connected node with that id exists, otherwise the callback's result. == Parameters [cols="1,4"] |=== | Name| Description | *id* | the id of the node to look up. | *func* | the callback to invoke; its return value is forwarded. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#