Function zebra_network::peer_set::initialize::accept_inbound_handshake
source ยท async fn accept_inbound_handshake<S>(
addr: PeerSocketAddr,
handshaker: S,
tcp_stream: TcpStream,
connection_tracker: ConnectionTracker,
peerset_tx: Sender<(PeerSocketAddr, Client)>,
) -> Result<JoinHandle<()>, BoxError>where
S: Service<HandshakeRequest<TcpStream>, Response = Client, Error = BoxError> + Clone,
S::Future: Send + 'static,
Expand description
Set up a new inbound connection as a Zcash peer.
Uses handshaker
to perform a Zcash network protocol handshake, and sends
the peer::Client
result over peerset_tx
.