A small network library written for use in C++ applications.
- SslStream: An OpenSSL wrapper for TCP/UDP sockets.
- HttpConnection/HttpServer: HTTP(s) client/server.
- WebSocketClient: WebSocket client.
- CMake (version >= 3.15)
- Compiler with C++17 support, i.e. MSVC, GCC, Clang
This library uses CPM.cmake to manage dependencies. It is an amazing package manager for CMake projects and allows us to install the entire library using the following commands:
git clone https://www.github.com/xminent/net
cd net
cmake -S . -B build
cmake --build build --target install
From there you can simply integrate it into your CMake project like so:
find_package(net REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE net::net)
See examples.