Table of Contents

ftp_error

FW >= 1295

The ftp_error() function returns the internal FTP error number

Description

int ftp_error ( )

Parameter

None

Return Values

int: Return value is explained in the below table.

Value Error Name Description
0 FTP_RESOLVE_OK DNS Resolution OK
1 FTP_RESOLVE_ERROR Unable to resolve server
2 FTP_TCP_ERROR Unable to open socket
3 FTC_TCP_ERROR_TIMEOUT Timeout while waiting for reply
4 FTC_TCP_ERROR_TLS_TIMEOUT Timeout while establishing secure connection
5 FTC_COMMAND_ERROR_TIMEOUT Error while awaiting command reply
6 FTC_ERROR_INVALID_PASSWORD Password is invalid
7 FTC_TCP_DISCONNECT The command or data channel socket was closed
8 FTC_ERROR_INVALID_COMMAND Invalid command received