DisconnectNode overloads
Synopses
Declared in <net.h>
Disconnect the peer with the given id, returning whether it was found.
bool
DisconnectNode(NodeId id);
Disconnect the peer(s) matching the given node string, returning whether any matched.
bool
DisconnectNode(std::string_view node);
Disconnect all peers at the given address, returning whether any matched.
bool
DisconnectNode(CNetAddr const& addr);
Disconnect all peers within the given subnet, returning whether any matched.
bool
DisconnectNode(CSubNet const& subnet);
Return Value
-
true if the peer was found and disconnected.
-
true if at least one peer was disconnected.
Parameters
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. |
Created with MrDocs