☢️ An up-to-date Source Server query protocol library written in C99.
This library supports each of the three undeprecated A2S queries:
- A2S_INFO,
- A2S_PLAYER,
- and A2S_RULES.
It has no dependencies and is designed to cross-compile on both Windows and UNIX-like operating systems.
It does not currently support Goldsource nor compressed responses.
Up-to-date documentation with examples is available on the wiki.
This project uses the CMake build system generator.
- Produce a static library from the root of the repository using CMake.
cmake -B builddir
cmake --build builddir
- Produce a dynamic library from the root of the repository using CMake.
cmake -B builddir -DBUILD_SHARED_LIBS=ON
cmake --build builddir
- (GNU/Linux) Compile the example program using GCC.
gcc -std=c99 -Iinclude example/example.c -o ssq -Lbuilddir -lssq