withSIX.Play.Core.Games.Legacy.ServerQuery.SourceServerQuery.GetInfo C# (CSharp) Method

GetInfo() private method

private GetInfo ( ) : Task
return Task
        async Task<byte[]> GetInfo() {
            await SendPacket(a2SInfoRequest).ConfigureAwait(false);
            var response = await ReceiveTillEnd().ConfigureAwait(false);
            if (response[4] != 0x49)
                throw new Exception($"Wrong packet tag: 0x{response[4]:X} Expected: 0x49.");
            return response;
        }