sh4ka / FileTransfer

File transfer over asynchronous TCP connection via boost.asio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

File transfer over asynchronous TCP connection via boost.asio

License:The Unlicense


Languages

Language:C++ 91.1%Language:CMake 8.9%