Class GameSpy3
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
stringThe IP address of the server.
port
intThe port number of the server.
timeout
intThe timeout for the connection in milliseconds.
Fields
ChallengeRequired
A boolean indicating whether to use the challenge method.
protected bool ChallengeRequired
Field Value
Properties
FullName
Gets the full name of the protocol.
public override string FullName { get; }
Property Value
Methods
GetStatus()
Retrieves information about the server including Info, Players, and Teams.
public Task<Status> GetStatus()
Returns
Exceptions
- InvalidPacketException
Thrown when the packet header does not match the expected header.
- TimeoutException
Thrown when the operation times out.