...
Files
ftp-c.h/ftp-c.c
Prototype
Code Block |
---|
CPU_BOOLEAN FTPc_SendBuf (FTPc_CONN *p_conn,
CPU_CHAR *p_remote_file_name,
CPU_INT08U *p_buf,
CPU_INT32U buf_len,
CPU_BOOLEAN append,
FTPc_ERR *p_err); |
Arguments
p_conn
Pointer to FTPc Connection object.
...
- This function can be used when no File System is present to transmit file from a memory buffer.
Example Usage
Code Block |
---|
#define BUF_SIZE 1024
FTPc_CONN conn;
CPU_INT08U buf[BUF_SIZE];
CPU_BOOLEAN result;
FTPc_ERR err;
result = FTPc_SendBuf(&conn,
"test",
&buf[0],
BUF_SIZE,
DEF_NO,
&err);
if (result != DEF_OK) {
printf("FTPc_SendBuf() failed.\n\r");
} |