CConnman::DisconnectNode

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

Synopsis

Declared in <net.h>

[[requires_capability(0x7fd74b3b7c28), requires_capability(0x7fd74af18898), requires_capability(0x7fd7574ed548), requires_capability(0x7fd74f4a8928), requires_capability(0x7fd75f872c18), requires_capability(0x7fd75930fa98), requires_capability(0x7fd753e617d8), requires_capability(0x7fd74d890e48), requires_capability(0x7fd755d44ad8), requires_capability(0x7fd7598a49e8), requires_capability(0x7fd74c8f7208)]]
bool
DisconnectNode(std::string_view node);

Return Value

true if at least one peer was disconnected.

Parameters

NameDescription
nodethe host string identifying the peer(s) to disconnect.