T2ServerQuery.PacketParser (T2ServerQuery v0.1.2) View Source
This module does the heavy lifting with parsing a Tribes 2 query response packet.
<< _header :: size(192), server_name :: bitstring >>
<< _header :: size(48), game_type_length :: little-integer, game_type :: binary-size(game_type_length), mission_type_length :: little-integer, mission_type :: binary-size(mission_type_length), map_name_length :: little-integer, map_name :: binary-size(map_name_length), _skip_a :: size(8), player_count :: little-integer, max_player_count :: little-integer, bot_count :: little-integer, _skip_b :: size(16), server_description_length :: little-integer, server_description :: binary-size(server_description_length), _skip_c :: size(16), team_count :: binary-size(1), rest :: bitstring >>
_skip_(a|b|c) mappings. I havn't quite figured out what they refer to yet but they don't seem that important. They likely relate to a few server flags like
T2ServerQuery.QueryResult for what a typical struct would look like.