View Source A2S (Elixir_A2S v0.1.0)
A library for communicating with game servers running Valve's A2S server query protocol.
Link to this section Summary
Functions
Parses a challenge response payload. Some game servers don't implement the challenge flow and will
immediately respond with the requested data. In that case :immediate will be returned with the data.
Link to this section Functions
@spec info_challenge_request() :: binary()
@spec parse_challenge(binary()) :: {:challenge, binary()} | {:immediate, {:info, A2S.Info.t()} | {:players, A2S.Players.t()} | {:rules, A2S.Rules.t()}} | {:multipart, {A2S.MultiPacketHeader.t(), binary()}} | {:error, :compression_not_supported}
Parses a challenge response payload. Some game servers don't implement the challenge flow and will
immediately respond with the requested data. In that case :immediate will be returned with the data.
If the server returns data immediately, and that data is multipart, :multipart will be returned.
@spec player_challenge_request() :: binary()
@spec rules_challenge_request() :: binary()