Bonjour à tous ! J’ai créé une petite bibliothèque C++ pour gérer des clients via un serveur utilisant Boost.Asio.
mkdir boost_server
cd boost_server
git clone https://github.com/Ferdinaelectro1/server_boost.gitsudo apt update
sudo apt install libboost-all-devmkdir build
chmod +x run
./runDepuis un autre terminal :
nc 127.0.0.1 1234git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
.\vcpkg install boost-asiowinget install Kitware.CMakemkdir build
cd build
cmake ..
make
./server.exe- Ouvrir deux terminaux :
nc 127.0.0.1 1234- Échanger des messages :
- Dans le terminal 1 :
Salut terminal 2→ apparaît dans le terminal 2 - Dans le terminal 2 :
Oui salut terminal 1→ apparaît dans le terminal 1
- Dans le terminal 1 :