ftpc_get, ftpc_put - Download or upload a file. |
#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); |
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. |
0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
pthrlib-3.0.3 |