Sends a ping message to all connected peers. The ping time (latency) is
recorded and can be viewed in the pingtime column of
mc_get_peer_info.
Arguments
- conn
A connection object created by
mc_connect.
See also
mc_get_peer_info to view ping times.
Other networking:
mc_add_node(),
mc_get_added_node_info(),
mc_get_network_info(),
mc_get_peer_info(),
mc_list_stored_nodes(),
mc_store_node()
Examples
if (FALSE) { # \dontrun{
mc_ping(conn)
Sys.sleep(1)
peers <- mc_get_peer_info(conn)
print(peers$pingtime)
} # }