class MCPing::Query
- MCPing::Query
- Reference
- Object
Overview
Queries a Minecraft server.
Defined in:
mcping/query.crConstructors
-
.new(ip : String, port : UInt32 = 25565_u32, qtype : MCPing::Query::QueryType = QueryType::Basic)
Creates a new querier.
Instance Method Summary
-
#query
Sends the ping request.
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.