[][src]Function craftping::ping

pub fn ping(addr: &str, port: u16) -> Result<String>

Execute a server list ping (for version > 1.6) Synchronously. Returns ping response in JSON format.

Arguments

  • addr - A string slice that represents the host without port
  • port - port number to ping on