Function ping

Source
pub async fn ping<N, T>(
    addr: N::Addr,
    config: &T::ClientConfig,
) -> Result<u64, HandshakeError>
where N: NetworkZone, T: Transport<N>,
Expand description

Send a ping to the requested peer and wait for a response, returning the peer_id.

This function does not put a timeout on the ping.