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

`DisconnectNode` overloads

== Synopses

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

Disconnect the peer with the given id, returning whether it was found&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950f5ffa68), requires&lowbar;capability(0x7f950ed88298), requires&lowbar;capability(0x7f950b490508), requires&lowbar;capability(0x7f95034d3128), requires&lowbar;capability(0x7f950e2104f8), requires&lowbar;capability(0x7f9527748198), requires&lowbar;capability(0x7f950c325328), requires&lowbar;capability(0x7f950c240f58), requires&lowbar;capability(0x7f95018ba708), requires&lowbar;capability(0x7f950bd925b8), requires&lowbar;capability(0x7f95065c9cb8)&rsqb;&rsqb;
bool
xref:CConnman/DisconnectNode-0f.adoc[DisconnectNode](xref:NodeId-08.adoc[NodeId] id);
----

[.small]#xref:CConnman/DisconnectNode-0f.adoc[_» more&period;&period;&period;_]#

Disconnect the peer(s) matching the given node string, returning whether any matched&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950f5ff6a8), requires&lowbar;capability(0x7f950ed87ed8), requires&lowbar;capability(0x7f950b490148), requires&lowbar;capability(0x7f95034d2d68), requires&lowbar;capability(0x7f950e210138), requires&lowbar;capability(0x7f9527747dd8), requires&lowbar;capability(0x7f950c324f68), requires&lowbar;capability(0x7f950c240b98), requires&lowbar;capability(0x7f95018ba348), requires&lowbar;capability(0x7f950bd921f8), requires&lowbar;capability(0x7f95065c98f8)&rsqb;&rsqb;
bool
xref:CConnman/DisconnectNode-0d.adoc[DisconnectNode](std::string&lowbar;view node);
----

[.small]#xref:CConnman/DisconnectNode-0d.adoc[_» more&period;&period;&period;_]#

Disconnect all peers at the given address, returning whether any matched&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950f5ff928), requires&lowbar;capability(0x7f950ed88158), requires&lowbar;capability(0x7f950b4903c8), requires&lowbar;capability(0x7f95034d2fe8), requires&lowbar;capability(0x7f950e2103b8), requires&lowbar;capability(0x7f9527748058), requires&lowbar;capability(0x7f950c3251e8), requires&lowbar;capability(0x7f950c240e18), requires&lowbar;capability(0x7f95018ba5c8), requires&lowbar;capability(0x7f950bd92478), requires&lowbar;capability(0x7f95065c9b78)&rsqb;&rsqb;
bool
xref:CConnman/DisconnectNode-01.adoc[DisconnectNode](xref:CNetAddr.adoc[CNetAddr] const& addr);
----

[.small]#xref:CConnman/DisconnectNode-01.adoc[_» more&period;&period;&period;_]#

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


[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
xref:CConnman/DisconnectNode-04.adoc[DisconnectNode](xref:CSubNet.adoc[CSubNet] const& subnet);
----

[.small]#xref:CConnman/DisconnectNode-04.adoc[_» more&period;&period;&period;_]#

== Return Value

* true if the peer was found and disconnected&period;
* true if at least one peer was disconnected&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| the id of the peer to disconnect&period;
| *node*
| the host string identifying the peer(s) to disconnect&period;
| *addr*
| the address whose peers should be disconnected&period;
| *subnet*
| the subnet whose peers should be disconnected&period;
|===


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