The source code of the project is hosted on GitHub. To build the container, required libraries, and the project itself, you need to run the following commands.
git clone https://github.com/maxoodf/colet_test.git
cd ./colet_test
sudo docker build -t ubuntu-colet .
sudo docker run -d -p 2222:22 ubuntu-colet
This process will take a time, depending on your hardware. After successfully launching the container, you can use an SSH client (user: ubuntu, password: password) or an IDE (in my case, CLion).
ssh ubuntu@localhost -p 2222
The project is built in two modes: release and debug. The executable files are located in the directories /home/ubuntu/colet_test/cmake-build-debug-colet
and /home/ubuntu/colet_test/cmake-build-release-colet
, respectively.
Conan 2.6 is used for library management. The project depends on two libraries: Boost 1.85.0 and OpenSSL 3.2.2.
The project uses two classes - HTTPClient and WebsocketClient, responsible for asynchronous connections to HTTPS and WSS servers, respectively. All operations are performed asynchronously using C++20 co_await/co_return calls.