QNet is a opensource networking library for both windows and linux written in c.
Find a file
2026-01-22 22:24:46 +01:00
tests feat(tests): added unit-test list 2026-01-20 20:11:42 +01:00
.gitignore Initial commit 2026-01-18 05:25:46 -06:00
CMakeLists.txt build(cmake): setup cmake build system for library and tests 2026-01-18 16:00:11 +01:00
CONVENTION.md docs(convention): added basic code convention rules 2026-01-18 19:04:09 +01:00
LICENSE Initial commit 2026-01-18 05:25:46 -06:00
README.md docs(readme): added installation guide to readme 2026-01-22 22:24:46 +01:00

QNet

QNet is a opensource networking library for both windows and linux written in c.

Introduction

QNet is a opensource networking library for C that works both on windows an linux. The library aims to provide a tool for developing servers and clients that is easy to use and fast. Using async methods like epoll, iocp and threading this library allows for many fast connections between server and clients.

Features

The QNet library offers the following features:

  • TCP and UDP client
  • TCP and UDP server
  • Async request and response processing
  • HTTP 1.1 request and response parsing
  • JSON parsing

Installation

Prerequisites

Ensure you have the following installed on your system:

  • CMake (minimum version 3.10)
  • A compatible C compiler (e.g., GCC or MSVC)

Build steps

  1. Clone the repository:

    git clone https://repo.strawhats.nl/Mineplay/QNet.git
    
  2. Navigate to the directory:

    cd QNet
    
  3. Create build directory:

    mkdir build
    
  4. Run cmake to configure the project:

    cmake . -B build
    
  5. Build the project:

    cmake --build build --config Release
    

    To build in debug use:

    cmake --build build
    

    This will both generate the library and test files.

Using the library