IBM API Hub
IBM Aspera Transfer SDK

By IBM Aspera

The IBM Aspera Transfer SDK allows you to initiate, monitor and control file transfers and streams.


Quick start guide for C++ sample code

Follow these steps to run C++ (CPP)sample code for TransferD. You can find the sample code in the /api folder of the installation directory.

For more information about the files and directories that are mentioned in the following sections, see Contents of the Installation Directory.

Requirements

  • CMake.
  • C++11 compatible compiler.
  • gRPC and Protobuf libraries.

Library files

When you incorporate TransferD into your own code, you must reference the following files:

transferd.pb.h
transferd.pb.cc
transferd.grpc.pb.h
transferd.grpc.pb.cc

Build

mkdir build
pushd build
cmake ..
make
popd

Note: If you have dependency problems, find tips in the CMakeLists.txt file.

Run

Create a connection to the TransferD daemon and run the sample code.

  • In a separate window or terminal, start the TransferD daemon from the installation directory:
    # from the aspera TransferD installation directory
    ./bin/asperatransferd
  • Run the wanted example. For example:
    ./build/regular_file_example
Legend
Technologies
Products & Services
Company information
Company logoIBM Aspera