Basic ping-pong on sockets. Written to practice various syscalls.
CMake>=3.10 and GCC are required.
git clone git@github.com:FedorChervyakov/ping-pong.git
cd ping-pong
mkdir build
cd build
cmake ../src
make
./server -u some.sock
# Then, in another terminal:
./client -u some.sock
-4 is used to force IPv4. Use -6 to force IPv6.
./server -4 -L '*:12345'
# Then, in another terminal:
./client -4 -C 'localhost:12345'
Listed below are requirements for the code.
GCC and CMake
open()with various flagsclose()socket()listen()accept()ioctl()write()read()