CConnman::DisconnectNode

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

Synopsis

Declared in <net.h>

bool
DisconnectNode(NodeId id);

Return Value

true if the peer was found and disconnected.

Parameters

NameDescription
idthe id of the peer to disconnect.