DisconnectNode overloads
Declared in <net.h>
Disconnect the peer with the given id, returning whether it was found.
bool
DisconnectNode(NodeId id);
» more...
Disconnect the peer(s) matching the given node string, returning whether any matched.
bool
DisconnectNode(std::string_view node);
» more...
Disconnect all peers at the given address, returning whether any matched.
bool
DisconnectNode(CNetAddr const& addr);
» more...
Disconnect all peers within the given subnet, returning whether any matched.
bool
DisconnectNode(CSubNet const& subnet);
» more...
| Name | Description |
|---|---|
| id | the id of the peer to disconnect. |
| node | the host string identifying the peer(s) to disconnect. |
| addr | the address whose peers should be disconnected. |
| subnet | the subnet whose peers should be disconnected. |