Attempts to open a connection. Currently only used from tests.
Synopsis
Declared in <net.h>
[[requires_capability(0x7fb96f52fb30, 0x7fb96f52fbf0), requires_capability(0x7fb96edb7d40, 0x7fb96edb7e00), requires_capability(0x7fb9675db180, 0x7fb9675db240), requires_capability(0x7fb96b4f2800, 0x7fb96b4f28c0), requires_capability(0x7fb95f2f3d00, 0x7fb95f2f3dc0), requires_capability(0x7fb96d935000, 0x7fb96d9350c0), requires_capability(0x7fb95f1f23d0, 0x7fb95f1f2490), requires_capability(0x7fb95f7992e0, 0x7fb95f7993a0), requires_capability(0x7fb964e15630, 0x7fb964e156f0), requires_capability(0x7fb96108b0b0, 0x7fb96108b170), requires_capability(0x7fb96025dac0, 0x7fb96025db80)]]
bool
AddConnection(
std::string const& address,
ConnectionType conn_type,
bool use_v2transport);
Return Value
bool Returns false if there are no available slots for this connection: ‐ conn_type not a supported ConnectionType ‐ Max total outbound connection capacity filled ‐ Max connection capacity for type is filled
Parameters
Name |
Description |
address [in] |
Address of node to try connecting to |
conn_type [in] |
ConnectionType::OUTBOUND, ConnectionType::BLOCK_RELAY, ConnectionType::ADDR_FETCH or ConnectionType::FEELER |
use_v2transport [in] |
Set to true if node attempts to connect using BIP 324 v2 transport protocol. |
Created with MrDocs