Attempts to open a connection. Currently only used from tests.
Synopsis
Declared in <net.h>
[[requires_capability(0x7f950f5ff210, 0x7f950f5ff2d0), requires_capability(0x7f950ed87a40, 0x7f950ed87b00), requires_capability(0x7f950b48fcb0, 0x7f950b48fd70), requires_capability(0x7f95034d28d0, 0x7f95034d2990), requires_capability(0x7f950e20fca0, 0x7f950e20fd60), requires_capability(0x7f9527747940, 0x7f9527747a00), requires_capability(0x7f950c324ad0, 0x7f950c324b90), requires_capability(0x7f950c240700, 0x7f950c2407c0), requires_capability(0x7f95018b9eb0, 0x7f95018b9f70), requires_capability(0x7f950bd91d60, 0x7f950bd91e20), requires_capability(0x7f95065c9460, 0x7f95065c9520)]]
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