CConnman::DisconnectNode

Disconnect all peers within the given subnet, returning whether any matched.

Synopsis

Declared in <net.h>

[[requires_capability(0x7fd74b3b7d68), requires_capability(0x7fd74af189d8), requires_capability(0x7fd7574ed688), requires_capability(0x7fd74f4a8a68), requires_capability(0x7fd75f872d58), requires_capability(0x7fd75930fbd8), requires_capability(0x7fd753e61918), requires_capability(0x7fd74d890f88), requires_capability(0x7fd755d44c18), requires_capability(0x7fd7598a4b28), requires_capability(0x7fd74c8f7348)]]
bool
DisconnectNode(CSubNet const& subnet);

Return Value

true if at least one peer was disconnected.

Parameters

NameDescription
subnetthe subnet whose peers should be disconnected.