|
Summary
User name used while connecting to server.
Description
The User property is used during the login process to the server. Most FTP servers require both a user name and a correct password before a session can be established. Before connecting to a
server, the application must also set the Password property to the correct password.
For security reasons, both the user name and the password are usually obtained from the user just before a connection is established. If security is not an important issue and the application will
always connect to the same FTP server with the same user name and password, then these two properties can be set at design time.
For additional security, the FTP service may reside on a port other than the default port 21. If the application prompts the user for a user name and a password, then adding a field to allow the user
to enter an FTP service port should be provided. Please check the reference page of the Port property for more details.
Usually for accounting purposes, some FTP servers require the user to enter an account name along with the user name and the password. If the application prompts the user for a user name and a
password, then adding a field to allow the user to enter an account name should be provided. Please check the reference page of the Account property for more details.
This property can be changed at design time and at run time before a connection has been established. There is no default value for this property.
Example
FTPClient.Host = "speedy.distinct.com" FTPClient.User = "santa" FTPClient.Password = "north pole" FTPClient.Account = ""
FTPClient.Action = ACTION_CONNECT
Note
For new applications use the User parameter in the Connect or FwConnect methods to specify the user name when connecting to a FTP server.
|