[#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(0x7f2e2b749a20), requires&lowbar;capability(0x7f2e28942730), requires&lowbar;capability(0x7f2e234d1910), requires&lowbar;capability(0x7f2e2737e0b0), requires&lowbar;capability(0x7f2e235ef740), requires&lowbar;capability(0x7f2e2a34b830), requires&lowbar;capability(0x7f2e219f8600), requires&lowbar;capability(0x7f2e21c834c0), requires&lowbar;capability(0x7f2e1aa36020), requires&lowbar;capability(0x7f2e376b8100), requires&lowbar;capability(0x7f2e433cdc90)&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]#
