QNet is a opensource networking library for both windows and linux written in c.
| tests | ||
| .gitignore | ||
| CMakeLists.txt | ||
| CONVENTION.md | ||
| LICENSE | ||
| README.md | ||
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
-
Clone the repository:
git clone https://repo.strawhats.nl/Mineplay/QNet.git -
Navigate to the directory:
cd QNet -
Create build directory:
mkdir build -
Run cmake to configure the project:
cmake . -B build -
Build the project:
cmake --build build --config ReleaseTo build in debug use:
cmake --build buildThis will both generate the library and test files.