Function cuprate_p2p_core::client::handshaker::ping

source ยท
pub async fn ping<N: NetworkZone>(addr: N::Addr) -> Result<u64, HandshakeError>
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.