Function network::transport::upgrade_outbound
source · pub async fn upgrade_outbound<T: TSocket>(
ctxt: Arc<UpgradeContext>,
fut_socket: impl Future<Output = Result<T>>,
addr: NetworkAddress,
remote_peer_id: PeerId,
remote_pubkey: PublicKey
) -> Result<Connection<NoiseStream<T>>>
Expand description
Upgrade an inbound connection. This means we run a Noise IK handshake for authentication and then negotiate common supported protocols.