sq

package
v0.0.0-...-1df3e9a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerData

type ServerData struct {
	Protocol      byte
	Name          string
	Map           string
	Folder        string
	Game          string
	ID            uint16
	Players       uint8
	MaxPlayers    uint8
	Bots          uint8
	ServerType    byte
	Envinronment  byte
	Visibility    byte
	VAC           byte
	Version       string
	ExtraData     byte
	Port          uint16
	SteamID       uint64
	SpectatorPort uint16
	SpectatorName string
	Keywords      string
	GameID        uint64
}

func QueryServerInfo

func QueryServerInfo(server string, timeout time.Duration) (srv ServerData, err error)

does an A2S_INFO request

type ServerEnv

type ServerEnv byte
const (
	Linux   ServerEnv = 'l'
	Windows ServerEnv = 'w'
	Mac     ServerEnv = 'm'
)

type ServerType

type ServerType byte
const (
	Dedicated     ServerType = 'd'
	NonDedicated  ServerType = 'l'
	SourceTVRelay ServerType = 'p'
)

Jump to

Keyboard shortcuts

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