query

package
v1.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 10 Imported by: 3

Documentation

Overview

Package query implements the UT3 query protocol as described on http://wiki.unrealadmin.org/UT3_query_protocol. It is composed of a handshake, followed by data sent by the server that responds to a query sent by the client. This UT3 query protocol is used by most Minecraft related servers. Package query specialises on Minecraft Bedrock Edition related queries. Querying other types of game servers is not guaranteed to work.

Where some server softwares (most common public ones) support this query protocol, others do not. A different kind of 'query', which is supported by all servers, may be performed using the go-raknet library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(address string) (information map[string]string, err error)

Do queries a server at the address passed using the UT3 query protocol. If the server responds, a map containing information is returned. Note that some servers do not support querying, in which case the query will time out. Do will take at most five seconds to try and get the query information.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL