I implemeted a file transfer through a websocket. The websocket is supported by Luna that is my open project.
cd ~/LunaFileTransfer/dependency/Luna
git submodule init
git submodule update
mkdir build
cd build
cmake ..
make
cd ~/LunaFileTransfer
git submodule init
git submodule update
mkdir build
cd build
cmake ..
make
cd ./LunaFileTransfer/build
./bin/LunaFileTransferServer
For running LunaFileTransfer client, you have to input an IP where the LunaFileTransferServer is located and a file path.
cd ./LunaFileTransfer/build
./bin/LunaFileTransfer localhost ./LunaFileTransfer/README.md