CConnman::DisconnectNode

Disconnect all peers at the given address, returning whether any matched.

Synopsis

Declared in <net.h>

[[requires_capability(0x7ff36f782688), requires_capability(0x7ff36f468ef8), requires_capability(0x7ff37f4084b8), requires_capability(0x7ff377565288), requires_capability(0x7ff37b6a0788), requires_capability(0x7ff37e1c83b8), requires_capability(0x7ff379a7e908), requires_capability(0x7ff36f4a5948), requires_capability(0x7ff37bc165a8), requires_capability(0x7ff3814a6578), requires_capability(0x7ff3666cd5f8)]]
bool
DisconnectNode(CNetAddr const& addr);

Return Value

true if at least one peer was disconnected.

Parameters

NameDescription
addrthe address whose peers should be disconnected.