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

Disconnect all peers within the given subnet, returning whether any matched&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950f5ff7e8), requires&lowbar;capability(0x7f950ed88018), requires&lowbar;capability(0x7f950b490288), requires&lowbar;capability(0x7f95034d2ea8), requires&lowbar;capability(0x7f950e210278), requires&lowbar;capability(0x7f9527747f18), requires&lowbar;capability(0x7f950c3250a8), requires&lowbar;capability(0x7f950c240cd8), requires&lowbar;capability(0x7f95018ba488), requires&lowbar;capability(0x7f950bd92338), requires&lowbar;capability(0x7f95065c9a38)&rsqb;&rsqb;
bool
DisconnectNode(xref:CSubNet.adoc[CSubNet] const& subnet);
----

== Return Value

true if at least one peer was disconnected&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *subnet*
| the subnet whose peers should be disconnected&period;
|===


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