Disconnect the peer(s) matching the given node string, returning whether any matched.

Synopsis

Declared in <net.h>

[[requires_capability(0x7fbc935fabb8), requires_capability(0x7fbc933617c8), requires_capability(0x7fbc8742ac48), requires_capability(0x7fbc97460828), requires_capability(0x7fbc8e97c968), requires_capability(0x7fbc859fdcd8), requires_capability(0x7fbc90e3b138), requires_capability(0x7fbc8ec36268), requires_capability(0x7fbc92aee728), requires_capability(0x7fbc7cdaff98), requires_capability(0x7fbc9fc8c138)]]
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