- TCP server:
Listen on a port for incoming TCP connections.
Prints everything it receives through the connection in the stdout.
Sends the message it has received through the connection. - TCP client:
Connect to an endpoint and port.
Prints everything it receives through the connection in the stdout. - UDP server:
Listen on a port for incoming UDP datagrams.
Multiple clients can send datagrams at its IP address and port.
Prints everything it receives in the stdout.
Sends back to the specific client the message it has received. - UDP client:
Connect to an endpoint and port.
Prints everything it receives through the connection in the stdout.
- CMake
- Clang
- LLDB
- clang-format (optional)
- VSCode 'CodeLLDB' extension (optional)
./ProjectFolder/scripts/build_cmake_debug.sh
or execute VSCode task build_cmake_debug
.
./ProjectFolder/scripts/build_debug.sh
Followed by:
lldb ./build/Debug/bin/cpp-cmake-template
or launch VSCode DEBUG
configuration.
./ProjectFolder/scripts/run_tests.sh
or execute VSCode task run_tests
.
docker compose down --volumes --rmi all
docker compose up
./ProjectFolder/scripts/create_release.sh
or execute VSCode task create_release
.
- To add new files:
- create a new folder in
ProjectFolder/src
- add
*.cpp
and*.h
files into it. - Remember to re-run
build_cmake_debug
- create a new folder in
- To add new tests:
- add new
test_*.cpp
files inProjectFolder/test
. - Remember to re-run
build_cmake_debug
- add new