Establishes a connection to a FTP server.
Files
ftp-c.h/ftp-c.c
Prototype
Arguments
server_ip
Server IP address.
server_port
Server TCP port number.
p_user
Username of the FTP server.
p_pass
Password for specified FTP user.
p_secure_cfg
Desired value for client secure mode:
Pointer to a secure configuration structure
If secured connection is required.
DEF_NULL
If secured connection is note required.
p_err
Pointer to variable that will receive the return error code from this function.
Returned Values
DEF_OK
, FTP connection successfully established;
DEF_FAIL
, otherwise.
Required Configuration
NET_SECURE_CFG_EN
should be DEF_ENABLED
AND NET_CFG_TRANSPORT_LAYER_SEL
should be configured for TCP). See µC/TCPIP user manual for more information about the network security manager.