[#CConnman-DisconnectNode-06] = xref:CConnman.adoc[CConnman]::DisconnectNode :relfileprefix: ../ :mrdocs: `DisconnectNode` overloads == Synopses Declared in `<net.h>` Disconnect the peer with the given id, returning whether it was found. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:CConnman/DisconnectNode-0f.adoc[DisconnectNode](xref:NodeId-08.adoc[NodeId] id); ---- [.small]#xref:CConnman/DisconnectNode-0f.adoc[_» more..._]# Disconnect the peer(s) matching the given node string, returning whether any matched. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:CConnman/DisconnectNode-0d.adoc[DisconnectNode](std::string_view node); ---- [.small]#xref:CConnman/DisconnectNode-0d.adoc[_» more..._]# Disconnect all peers at the given address, returning whether any matched. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:CConnman/DisconnectNode-01.adoc[DisconnectNode](xref:CNetAddr.adoc[CNetAddr] const& addr); ---- [.small]#xref:CConnman/DisconnectNode-01.adoc[_» more..._]# Disconnect all peers within the given subnet, returning whether any matched. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:CConnman/DisconnectNode-04.adoc[DisconnectNode](xref:CSubNet.adoc[CSubNet] const& subnet); ---- [.small]#xref:CConnman/DisconnectNode-04.adoc[_» more..._]# == Return Value * true if the peer was found and disconnected. * true if at least one peer was disconnected. == Parameters [cols="1,4"] |=== | Name| Description | *id* | the id of the peer to disconnect. | *node* | the host string identifying the peer(s) to disconnect. | *addr* | the address whose peers should be disconnected. | *subnet* | the subnet whose peers should be disconnected. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#