Skip to contents

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.

Usage

mc_ping(conn)

Arguments

conn

A connection object created by mc_connect.

Value

Invisibly returns the RPC result (typically NULL) on success.

Examples

if (FALSE) { # \dontrun{
mc_ping(conn)
Sys.sleep(1)
peers <- mc_get_peer_info(conn)
print(peers$pingtime)
} # }