[#CConnman-ForNode]
= xref:CConnman.adoc[CConnman]::ForNode
:relfileprefix: ../
:mrdocs:

Invoke a callback on the node with the given id, if it is fully connected&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e2b748848), requires&lowbar;capability(0x7f2e28941558), requires&lowbar;capability(0x7f2e234d0738), requires&lowbar;capability(0x7f2e2737ced8), requires&lowbar;capability(0x7f2e235ee568), requires&lowbar;capability(0x7f2e2a34a658), requires&lowbar;capability(0x7f2e219f7428), requires&lowbar;capability(0x7f2e21c822e8), requires&lowbar;capability(0x7f2e1aa34e48), requires&lowbar;capability(0x7f2e376b6f28), requires&lowbar;capability(0x7f2e433ccab8)&rsqb;&rsqb;
bool
ForNode(
    xref:NodeId-08.adoc[NodeId] id,
    std::function&lt;bool(xref:CNode.adoc[CNode]*)&gt; func);
----

== Return Value

false if no fully connected node with that id exists, otherwise the callback&apos;s result&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| the id of the node to look up&period;
| *func*
| the callback to invoke&semi; its return value is forwarded&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
