[#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(0x7f2e2b748848), requires_capability(0x7f2e28941558), requires_capability(0x7f2e234d0738), requires_capability(0x7f2e2737ced8), requires_capability(0x7f2e235ee568), requires_capability(0x7f2e2a34a658), requires_capability(0x7f2e219f7428), requires_capability(0x7f2e21c822e8), requires_capability(0x7f2e1aa34e48), requires_capability(0x7f2e376b6f28), requires_capability(0x7f2e433ccab8)]] 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]#