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

Synopsis

Declared in <net.h>

[[requires_capability(0x7f950f5ffa68), requires_capability(0x7f950ed88298), requires_capability(0x7f950b490508), requires_capability(0x7f95034d3128), requires_capability(0x7f950e2104f8), requires_capability(0x7f9527748198), requires_capability(0x7f950c325328), requires_capability(0x7f950c240f58), requires_capability(0x7f95018ba708), requires_capability(0x7f950bd925b8), requires_capability(0x7f95065c9cb8)]]
bool
DisconnectNode(NodeId id);

Return Value

true if the peer was found and disconnected.

Parameters

Name

Description

id

the id of the peer to disconnect.

Created with MrDocs