connect

Function connect 

Source
async fn connect<K>(
    name: &'static str,
    this: (K, Keypair),
    to: (K, PublicKey),
    addr: Address,
    delays: [u8; 5],
    metrics: Arc<NetworkMetrics<K>>,
) -> (TcpStream, TransportState)
where K: Eq + Hash + Display + Clone,
Expand description

Connect to the given socket address.

This function will only return, when a connection has been established and the handshake has been completed.