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