CConnman::DisconnectNode

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

Synopsis

Declared in <net.h>

[[requires_capability(0x7fbc935faf78), requires_capability(0x7fbc93361b88), requires_capability(0x7fbc8742b008), requires_capability(0x7fbc97460be8), requires_capability(0x7fbc8e97cd28), requires_capability(0x7fbc859fe098), requires_capability(0x7fbc90e3b4f8), requires_capability(0x7fbc8ec36628), requires_capability(0x7fbc92aeeae8), requires_capability(0x7fbc7cdb0358), requires_capability(0x7fbc9fc8c4f8)]]
bool
DisconnectNode(NodeId id);

Return Value

true if the peer was found and disconnected.

Parameters

NameDescription
idthe id of the peer to disconnect.