Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.

FTPc_RecvFile()

Receives a file into the file system.

Files

ftp-c.h/ftp-c.c

Prototype

CPU_BOOLEAN FTPc_RecvFile (CPU_CHAR *remote_file_name,

CPU_CHAR *local_file_name,

NET_ERR *perr_net);

Arguments

remote_file_name File on the remote FTP server.

local_file_name File on the local file system..

p_err_net Pointer to variable that will receive the return error code from this function.

Returned Values

DEF_OK, File successfully received;

DEF_FAIL, otherwise.

Required Configuration

None.

Notes / Warnings

None.

Example Usage

CPU_BOOLEAN result;

NET_ERR err;

 

result = FTPc_RecvFile((CPU_CHAR *) "file_remote",

(CPU_CHAR *)"\\file_local",

(NET_ERR *)&err);

if (result != DEF_OK) {

printf("FTPc_RecvBuf() failed.\n\r");

}

  • No labels