https://github.com/opengsq/opengsq-dotnet
.NET library designed for querying game servers. It supports 23 different query protocols and has been downloaded over 2,300 times.
https://github.com/opengsq/opengsq-dotnet
ase csharp doom3 eos fivem game game-server-query gamespy minecraft opengsq quake server-query source teamspeak3 unreal2
Last synced: about 2 months ago
JSON representation
.NET library designed for querying game servers. It supports 23 different query protocols and has been downloaded over 2,300 times.
- Host: GitHub
- URL: https://github.com/opengsq/opengsq-dotnet
- Owner: opengsq
- License: mit
- Created: 2021-06-03T18:44:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T11:17:09.000Z (4 months ago)
- Last Synced: 2025-04-15T05:04:55.247Z (about 2 months ago)
- Topics: ase, csharp, doom3, eos, fivem, game, game-server-query, gamespy, minecraft, opengsq, quake, server-query, source, teamspeak3, unreal2
- Language: C#
- Homepage: https://dotnet.opengsq.com/
- Size: 756 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# OpenGSQ .NET Library
[](https://github.com/opengsq/opengsq-dotnet/actions/workflows/dotnet-package.yml)
[](https://github.com/opengsq/opengsq-dotnet/blob/main/LICENSE)
[](https://www.nuget.org/packages/OpenGSQ/)
The OpenGSQ .NET library provides a convenient way to query servers from applications written in the C# language.
## Documentation
Detailed documentation is available at [https://dotnet.opengsq.com](https://dotnet.opengsq.com).
## Supported Protocols
A list of supported protocols can be found at [https://dotnet.opengsq.com/api/OpenGSQ.Protocols.html](https://dotnet.opengsq.com/api/OpenGSQ.Protocols.html).
## Prerequisities
The library requires a minimum of .NET Standard 2.0.
You can find a list of all supported frameworks at [Supported Frameworks](https://www.nuget.org/packages/OpenGSQ/#supportedframeworks-body-tab).
## Installation
You can find the package through the NuGet Package Manager or install it using the following command:
```sh
dotnet add package OpenGSQ
```## Usage
Here is an example of how to use the Source Query Protocol with OpenGSQ
```cs
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
You can find information about tests and results at [https://dotnet.opengsq.com/tests](https://dotnet.opengsq.com/tests/OpenGSQ.Protocols.Tests/OpenGSQ.Protocols.Tests.html).
## Stargazers over time
[](https://starchart.cc/opengsq/opengsq-dotnet)