Aspera Developer Documentation

Aspera C++ Command Client Library

Introduction

The Aspera C++ Command Client library provides the base to perform file system operations on any remote machine running the Aspera Command Server

Commands supported by the library

The Command Client library supports the following commands: as_ls: Equivalent to the Unix ls command. Retrieves the list of files and its atrributes
as_info: Retrieves the remote system information
as_cp: Copies the specified file in the filesystem
as_mv: Moves the specified file in the filesystem
as_rm: Removes a specified file or a directory from the filesystem
as_du: Retrieves the disk usage of a specified file or a directory
as_df: Retrieves the filesystem mounts on the remote system
as_mkdir: Creates a directory with the specified name and path
as_md5sum: Retrieves the md5sum of a specified file

Interface

The Command Client library provides a friendly API to perform filesystem operations. The class CommandClient provides methods to connect to a remote host and to peforme various operations. The methods execLs, execMd5sum, execDf and execDu return pointers to objects that contain the reply from the command server. All these reply objects/classes have a printReply() method that prints a summary of the information received from the command server They also have methods to extract only the information of interest. All methods that allow execution(prefixed with 'exec') of commands take an object of 'CmdError' class as parameter. In case the command fails, the description of the failure is stored to this object.

Copyright © 2005 Aspera, Inc. | asperasoft.com