CConnman::DisconnectNode

Disconnect the peer with the given id, returning whether it was found.

Synopsis

Declared in <net.h>

[[requires_capability(0x7fd74b3b7fe8), requires_capability(0x7fd74af18c58), requires_capability(0x7fd7574ed908), requires_capability(0x7fd74f4a8ce8), requires_capability(0x7fd75f872fd8), requires_capability(0x7fd75930fe58), requires_capability(0x7fd753e61b98), requires_capability(0x7fd74d891208), requires_capability(0x7fd755d44e98), requires_capability(0x7fd7598a4da8), requires_capability(0x7fd74c8f75c8)]]
bool
DisconnectNode(NodeId id);

Return Value

true if the peer was found and disconnected.

Parameters

NameDescription
idthe id of the peer to disconnect.