TCPIP_FTP_MODULE_CONFIG Structure

C

typedef struct {
    uint16_t cmdPort;
    uint16_t dataPort;
    uint16_t nConnections;
    uint16_t dataSktTxBuffSize;
    uint16_t dataSktRxBuffSize;
    const char* mountPath;
    char * userName;
    char * password;
} TCPIP_FTP_MODULE_CONFIG;

Description

Structure: TCPIP_FTP_MODULE_CONFIG.

FTP server configuration and initialization data. Configuration is part of tcpip_stack_init.c.

Members

MembersDescription
cmdPortFTP listening command port: TCPIP_FTP_COMMAND_PORT (21, 990, etc.).
dataPortFTP listening data port: TCPIP_FTP_DATA_PORT (20, 989) etc.
nConnectionsNumber of simultaneous FTP connections allowed.
dataSkTxBuffSizeSize of data socket TX buffer for the associated socket. Leave 0 for default.
dataSktRxBuffSizeSize of data socket RX buffer for the associated socket. Leave 0 for default. The FTP server will access files located under this top directory. No access is possible above this directory. As a good practive to follow, use something like: "/mnt_point/ftp/" to limit an external user access to this only directory in the file system when accessing files.
userNameFTP login user name. Size should not exceed more than TCPIP_FTP_USER_NAME_LEN.
passwordFTP login password. Size should not exceed more than TCPIP_FTP_PASSWD_LEN.

Remarks

The obsolete authentication members will be eventually removed from the FTP server module configuration data. New projects should use the run time authentication.