Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dabbertorres/cppnet
https://github.com/dabbertorres/cppnet
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dabbertorres/cppnet
- Owner: dabbertorres
- License: mit
- Created: 2022-01-31T21:59:42.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-22T20:07:05.000Z (5 months ago)
- Last Synced: 2024-08-23T20:09:57.078Z (5 months ago)
- Language: C++
- Size: 582 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# net for C++
Networking library for C++. Uses C++ 23 features.
## Building
Uses vcpkg for obtaining dependencies.
```sh
cmake -B build \
-DBUILD_TESTING=TRUE \
-DBUILD_EXAMPLE=TRUE \
cmake --build build
```### Examples
#### Specify Compiler and Alternate Build System
```sh
cmake -B build \
-G"Ninja Multi-Config" \
-DBUILD_TESTING=TRUE \
-DBUILD_EXAMPLE=TRUE \
-DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ \
-DCMAKE_PREFIX_PATH=/usr/local/opt/llvm/lib
cmake --build build --config Debug
```## Testing
Uses Catch2.
```sh
cmake -B build -DBUILD_TESTING=TRUE
cmake --build build
ctest --test-dir build # OR directly run ./build/test/Debug/tests
```