On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTIP-32 Programming Manual
RTIP-32 Reference Manual
RTIP-32 Configuration
Socket API
Simplified Networking API
Extended RTIP-32 API
PPP
DHCP Client
DHCP Server
FTP Client
FTP Server
FTP Server Configuration
Function ftp_server_set_auth
Function ftp_server_daemon
Function cb_ftp_check_user_name_fnc
Function cb_ftp_check_password_fnc
TFTP Client
TFTP Server
Telnet Client
Telnet Server
Web Server
SNMP Client
POP3 Client
SMTP Client
SNTP Client
SMB Server
SMB Client
SMB3 Server
SMB3 Client
WLAN Driver
Error Codes
RTPEG-32
RTUSB-32
|
FTP Server Configuration
The FTP Server uses the following global constants, which an application can modify at run-time before calling xn_rtip_init:
- CFG_FTP_ROOT_DIR. Initial directory of a new FTP session. Note that the FTP command CWD does not change the default directory. Rather, it defines a directory name the server will prepend to every file open operation. Default is "C:\". Function ftp_server_set_auth can be used to override CFG_FTP_ROOT_DIR on a per user basis.
- CFG_FTP_LISTEN_BACKLOG. Backlog value in the server's listen call. Default is 5.
- CFG_FTP_READ_TMO. Time in seconds to wait for data to arrive. This value is used by the FTP Client and Server. It is also used by the FTP Server as the amount of time to wait for acknowledgement from remote hosts when sending a file or responses to info for list commands. The default is 30 seconds.
- CFG_FTP_WRITE_TMO. Timeout in seconds for the FTP Server to wait for a connection to become established. The default is 30 seconds.
- CFG_FTP_COMMAND_TMO. Timeout in seconds to wait for a command from a client. The default is RTIP_INF.
- CFG_FTP_PWD_NO_DRIVE. Set to TRUE to strip the drive from pathes returned by the FTP Server doing a PWD command. Default is TRUE. At FALSE, drive letters and the colon are retained, which is not compatible with all Unix-based clients.
- CFG_FILE_BACKSLASH. Set to TRUE to convert forward slashes to backslashes in filenames received from a client. Default is FALSE.
- CFG_RETURN_FORWARDSLASH. Set to TRUE to convert backslashes to forward slashes when returning paths for PWD to a client. Default is FALSE.
- CFG_FTP_PASV_PORT. Port value the server should use for passive data connections. If this value is left at its default value 0, the server will dynamically allocate ports.
- CFG_FTP_MAX_SESSIONS. Maximum number of sessions the FTP server will allow simultaneously. If set to 0 (default), no limit is enforced.
- CFG_FTP_SRV_CNTRL_PORT. TCP port number on which the server listens for new connections and commands. Default is 21.
- CFG_FTP_SRV_DATA_PORT. TCP port number used for data connections in active mode. Default is 20.
FTP Server
Function ftp_server_set_auth
|