[#CConnman-DisconnectNode-04] = xref:CConnman.adoc[CConnman]::DisconnectNode :relfileprefix: ../ :mrdocs: Disconnect all peers within the given subnet, returning whether any matched. == Synopsis Declared in `<net.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e2b749de8), requires_capability(0x7f2e28942af8), requires_capability(0x7f2e234d1cd8), requires_capability(0x7f2e2737e478), requires_capability(0x7f2e235efb08), requires_capability(0x7f2e2a34bbf8), requires_capability(0x7f2e219f89c8), requires_capability(0x7f2e21c83888), requires_capability(0x7f2e1aa363e8), requires_capability(0x7f2e376b84c8), requires_capability(0x7f2e433ce058)]] bool DisconnectNode(xref:CSubNet.adoc[CSubNet] const& subnet); ---- == Return Value true if at least one peer was disconnected. == Parameters [cols="1,4"] |=== | Name| Description | *subnet* | the subnet whose peers should be disconnected. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#