OpenGSQ 2.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package OpenGSQ --version 2.1.1                
NuGet\Install-Package OpenGSQ -Version 2.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OpenGSQ" Version="2.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpenGSQ --version 2.1.1                
#r "nuget: OpenGSQ, 2.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OpenGSQ as a Cake Addin
#addin nuget:?package=OpenGSQ&version=2.1.1

// Install OpenGSQ as a Cake Tool
#tool nuget:?package=OpenGSQ&version=2.1.1                

OpenGSQ .NET Library

Dotnet Package GitHub license NuGet Version NuGet Downloads

The OpenGSQ .NET library provides a convenient way to query servers from applications written in the C# language.

Supported Protocols

using OpenGSQ.Protocols;

var ase = new ASE("79.137.97.3", 22126);
var battlefield = new Battlefield("94.250.199.214", 47200, 10000);
var doom3 = new Doom3("178.162.135.83", 27735);
var eos = new EOS("5.62.115.46", 7783, 5000, clientId, clientSecret, deploymentId);
var fivem = new FiveM("144.217.10.12", 30120);
var gameSpy1 = new GameSpy1("139.162.235.20", 7778);
var gameSpy2 = new GameSpy2("108.61.236.22", 23000);
var gameSpy3 = new GameSpy3("95.172.92.116", 29900);
var gameSpy4 = new GameSpy4("play.avengetech.me", 19132);
var killingFloor = new KillingFloor("104.234.65.235", 7708);
var minecraft = new Minecraft("valistar.site", 25565);
var quake1 = new Quake1("35.185.44.174", 27500);
var quake2 = new Quake2("46.165.236.118", 27910);
var quake3 = new Quake3("108.61.18.110", 27960);
var raknet = new RakNet("mc.advancius.net", 19132);
var samp = new Samp("51.254.178.238", 7777);
var satisfactory = new Satisfactory("79.136.0.124", 15777);
var scum = new Scum("15.235.181.19", 7042);
var source = new Source("45.62.160.71", 27015);
var teamSpeak3 = new TeamSpeak3("145.239.200.2", 10011, 9987);
var unreal2 = new Unreal2("109.230.224.189", 6970);
var vcmp = new Vcmp("51.178.65.136", 8114);
var won = new WON("212.227.190.150", 27020);

Installation

Find the package through NuGet Package Manager or install it with following command.

dotnet add package OpenGSQ

Usage

Source Query Protocol

using System;
using System.Threading.Tasks;
using OpenGSQ.Protocols;

class Program
{
    static async Task Main()
    {
        // Create a new Source object
        var source = new Source("45.62.160.71", 27015);

        // Call the GetInfo method
        var info = await source.GetInfo();

        // Now you can use the 'info' object
    }
}

Tests and Results

See OpenGSQTests/Protocols for the tests.

See OpenGSQTests/Results for tests outputs.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.5 294 2/7/2024
2.1.4 114 2/5/2024
2.1.3 121 1/29/2024
2.1.2 113 1/26/2024
2.1.1 121 1/21/2024
2.1.0 111 1/20/2024
2.0.1 117 1/18/2024
2.0.0 102 1/18/2024
1.3.0 928 1/13/2022
1.2.0 390 10/31/2021
1.1.1 372 7/4/2021
1.0.1 307 6/4/2021