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

Return the number of connections in the given direction (inbound, outbound, or both)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950f5ff420), requires&lowbar;capability(0x7f950ed87c50), requires&lowbar;capability(0x7f950b48fec0), requires&lowbar;capability(0x7f95034d2ae0), requires&lowbar;capability(0x7f950e20feb0), requires&lowbar;capability(0x7f9527747b50), requires&lowbar;capability(0x7f950c324ce0), requires&lowbar;capability(0x7f950c240910), requires&lowbar;capability(0x7f95018ba0c0), requires&lowbar;capability(0x7f950bd91f70), requires&lowbar;capability(0x7f95065c9670)&rsqb;&rsqb;
size&lowbar;t
GetNodeCount(xref:ConnectionDirection.adoc[ConnectionDirection] direction) const;
----

== Return Value

the number of connections matching the given direction&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *direction*
| the connection direction(s) to count&period;
|===


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