[#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(0x7ff36f782548), requires_capability(0x7ff36f468db8), requires_capability(0x7ff37f408378), requires_capability(0x7ff377565148), requires_capability(0x7ff37b6a0648), requires_capability(0x7ff37e1c8278), requires_capability(0x7ff379a7e7c8), requires_capability(0x7ff36f4a5808), requires_capability(0x7ff37bc16468), requires_capability(0x7ff3814a6438), requires_capability(0x7ff3666cd4b8)]] 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]#