Simple client-server apps to transfer file.
- Boost 1.58.0 or later.
- C++11 compiler.
- Install boost.asio.
- Install MS Visual Studio 2015 with update 5.
- Add
BOOST_ROOT
with boost's directory path to environment variables. - Open solution
FileTransfer.sln
and build.
- Install cmake.
- Open terminal in project root directory:
mkdir build && cd build
cmake ..
make
- Install cmake:
brew install cmake
- Install boost:
brew install boost
- Open terminal in project root directory:
mkdir build && cd build
cmake ..
make
- Start server to accept files:
server <port> <outDirectory>
- Start client to transfer file
<transferFilePath>
:
client <serverAddress> <serverPort> <transferFilePath>
- Transferred file will be at
<outDirectory>
.