Disconnect the peer(s) matching the given node string, returning whether any matched.
Synopsis
Declared in <net.h>
[[requires_capability(0x7f2e2b749ca8), requires_capability(0x7f2e289429b8), requires_capability(0x7f2e234d1b98), requires_capability(0x7f2e2737e338), requires_capability(0x7f2e235ef9c8), requires_capability(0x7f2e2a34bab8), requires_capability(0x7f2e219f8888), requires_capability(0x7f2e21c83748), requires_capability(0x7f2e1aa362a8), requires_capability(0x7f2e376b8388), requires_capability(0x7f2e433cdf18)]]
bool
DisconnectNode(std::string_view node);
Return Value
true if at least one peer was disconnected.
Parameters
Name |
Description |
node |
the host string identifying the peer(s) to disconnect. |
Created with MrDocs