FTPc_Close
Closes the FTP connection.
Files
ftp-c.h/ftp-c.c
Prototype
CPU_BOOLEAN FTPc_Close (FTPc_CONN *p_conn, FTPc_ERR *p_err)
Arguments
p_conn
Pointer to FTP Client Connection object.
p_err
Pointer to variable that will receive the return error code from this function:
FTPc_ERR_NONE
FTPc_ERR_TX_CMD
FTPc_ERR_RX_CMD_RESP_FAIL
Returned Values
DEF_OK
, FTP connection successfully closed;DEF_FAIL
, otherwise.
Required Configuration
None.
Notes / Warnings
None.
Example Usage
FTPc_CONN conn; CPU_BOOLEAN result; FTPc_ERR err; result = FTPc_Close(&conn, &err); if (result != DEF_OK) { printf("FTPc_Close() failed.\n\r"); }