[#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(0x7ff36f780fa8), requires_capability(0x7ff36f467818), requires_capability(0x7ff37f406dd8), requires_capability(0x7ff377563ba8), requires_capability(0x7ff37b69f0a8), requires_capability(0x7ff37e1c6cd8), requires_capability(0x7ff379a7d228), requires_capability(0x7ff36f4a4268), requires_capability(0x7ff37bc14ec8), requires_capability(0x7ff3814a4e98), requires_capability(0x7ff3666cbf18)]] 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]#