pub async fn connect(
tcp: TcpStream,
local: LocalPeer<'_>,
) -> Result<PeerChannel, PeeringError>Expand description
Client side of the peering handshake. The dialing device connects, drives the TLS 1.3
handshake to completion, derives the same exporters, exchanges hellos (write-then-read), and
runs the hybrid check, all within HANDSHAKE_TIMEOUT. See accept for the security
contract.