class

MCPing::Query

Inherits Reference < Object

Queries a Minecraft server.

Constructors

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.

Source

Instance methods

query

Sends the ping request.

TODO: Options for changing the timeouts from 2 seconds.

Source

Nested types