Class GameSpy2
Gamespy Query Protocol version 2
public class GameSpy2 : ProtocolBase
- Inheritance
-
GameSpy2
- Inherited Members
Constructors
GameSpy2(string, int, int)
Initializes a new instance of the GameSpy2 class.
public GameSpy2(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.
Properties
FullName
Gets the full name of the protocol.
public override string FullName { get; }
Property Value
Methods
GetStatus(RequestHeader)
Retrieves information about the server including Info, Players, and Teams.
public Task<Status> GetStatus(GameSpy2.RequestHeader requestHeader = RequestHeader.Info | RequestHeader.Players | RequestHeader.Teams)
Parameters
requestHeader
GameSpy2.RequestHeaderThe type of information to request.
Returns
Exceptions
- TimeoutException
Thrown when the operation times out.