Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 981 Bytes

README.md

File metadata and controls

56 lines (43 loc) · 981 Bytes

FileTransfer

Simple client-server apps to transfer file.

Requirements

Building for Windows

  • 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.

Building for Linux

  • Install cmake.
  • Open terminal in project root directory:
mkdir build && cd build
cmake ..
make

Building for OS X

  • Install cmake:
brew install cmake
  • Install boost:
brew install boost
  • Open terminal in project root directory:
mkdir build && cd build
cmake ..
make

Running

  • Start server to accept files:
server <port> <outDirectory>
  • Start client to transfer file <transferFilePath>:
client <serverAddress> <serverPort> <transferFilePath>
  • Transferred file will be at <outDirectory>.