McQueryEx v0.3.0 McQueryEx.BasicStat View Source

McQueryEx.BasicStat creates BasicStat requests, and decodes BasicStat responses into a struct.

Link to this section Summary

Types

t()

Encapsulates the basic stat response. Also used within the full stat response for storing a portion of the data.

Link to this section Types

Link to this type

t()

View Source
t() :: %McQueryEx.BasicStat{
  game_type: String.t(),
  host_ip: String.t(),
  host_port: integer(),
  map: String.t(),
  max_players: integer(),
  motd: String.t(),
  num_players: integer()
}

Encapsulates the basic stat response. Also used within the full stat response for storing a portion of the data.

Link to this section Functions

Link to this function

create(mc_query_ex, challenge)

View Source
create(McQueryEx.t(), integer()) :: <<_::88>>
Link to this function

decode_response(arg1)

View Source
decode_response(binary()) :: {:ok, t()}
decode_response(any()) :: {:error, String.t()}