Skip to content

BinaryAlien/libssq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libssq

☢️ An up-to-date Source Server query protocol library written in C99.

Features

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.

Documentation

Up-to-date documentation with examples is available on the wiki.

Build

This project uses the CMake build system generator.

Example

  • 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
gcc -std=c99 -Iinclude example/example.c -o ssq -Lbuilddir -lssq