Table of Contents

Class GameSpy3

Namespace
OpenGSQ.Protocols
Assembly
OpenGSQ.dll

Gamespy Query Protocol version 3

public class GameSpy3 : ProtocolBase
Inheritance
GameSpy3
Derived
Inherited Members

Constructors

GameSpy3(string, int, int)

Initializes a new instance of the GameSpy3 class.

public GameSpy3(string host, int port, int timeout = 5000)

Parameters

host string

The IP address of the server.

port int

The port number of the server.

timeout int

The timeout for the connection in milliseconds.

Fields

ChallengeRequired

A boolean indicating whether to use the challenge method.

protected bool ChallengeRequired

Field Value

bool

Properties

FullName

Gets the full name of the protocol.

public override string FullName { get; }

Property Value

string

Methods

GetStatus()

Retrieves information about the server including Info, Players, and Teams.

public Task<Status> GetStatus()

Returns

Task<Status>

A Status object containing the server information, players, and teams.

Exceptions

InvalidPacketException

Thrown when the packet header does not match the expected header.

TimeoutException

Thrown when the operation times out.