ftpc_get

NAME
SYNOPSIS
DESCRIPTION
RETURNS
AUTHOR
LICENSE
VERSION

NAME

ftpc_get, ftpc_put - Download or upload a file.

SYNOPSIS

#include <pthr_ftpc.h>

int ftpc_get (ftpc ftpc, const char *remote_file, const char *local_file);
int ftpc_put (ftpc ftpc, const char *local_file, const char *remote_file);

DESCRIPTION

ftpc_get attempts to download remote_file from the server and store it in a local file called local_file.
ftpc_put attempts to upload a file called local_file to the server and store it in a file on the server called remote_file.

RETURNS

0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3