query

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 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.

Where some server softwares (most common public ones, such as PocketMine) 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. (raknet.Ping()) Server softwares which do not implement the query protocol include the Bedrock Dedicated Server.

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