Disconnect the peer(s) matching the given node string, returning whether any matched.
Declared in <net.h>
[[requires_capability(0x7ff36f782408), requires_capability(0x7ff36f468c78), requires_capability(0x7ff37f408238), requires_capability(0x7ff377565008), requires_capability(0x7ff37b6a0508), requires_capability(0x7ff37e1c8138), requires_capability(0x7ff379a7e688), requires_capability(0x7ff36f4a56c8), requires_capability(0x7ff37bc16328), requires_capability(0x7ff3814a62f8), requires_capability(0x7ff3666cd378)]]
bool
DisconnectNode(std::string_view node);
true if at least one peer was disconnected.
| Name | Description |
|---|---|
| node | the host string identifying the peer(s) to disconnect. |