class MCPing::Query

Overview

Queries a Minecraft server.

Defined in:

mcping/query.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ip : String, port : UInt32 = 25565_u32, qtype : MCPing::Query::QueryType = QueryType::Basic) #

Creates a new querier.

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


[View source]

Instance Method Detail

def query #

Sends the ping request.

TODO Options for changing the timeouts from 2 seconds.


[View source]