This program allows a server to connect multiple clients simultaneously. The client sends the terminal input to the server, and the server replies to the client with the same content
Ensure that you have the hardware conditions for RDMA
mkdir build
cd build
cmake ..
make
- open the first terminal
cd build
./server [port]
-
open other terminal, start the first client
the ip is server ip, the port is the server port
cd build
./client [ip] [port]
- you can open the third terminal, execute the same command as step2 to run another client