class MCPing::Ping

Overview

Pings a Minecraft server.

Defined in:

mcping/ping.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ip : String, port : UInt32 = 25565_u32) #

Creates a new pinger.

Requires the server's domain name or IP address and port number.


[View source]

Instance Method Detail

def ping #

Sends the ping request.

TODO Options for changing the timeouts from 2 seconds.


[View source]