This is how you connect to the FTP server. user is the username, pass is the password, server is the host-name or I.P. address of the server. All three are required.
Returns: boolean true or false
Use ftp.GetError() for error handling.
This is how you logout/exit and disconnect from the server. FtpClient keeps an active connection between calls. Remember most servers have a 15 minute timeout of inactivity.
Returns: boolean true or false
Use ftp.GetError() for error handling.
Method to check if your connection is active.
Returns: boolean true or false
If the FTP port is not the default of 21, use this before calling the Connect method.
Default: 15 seconds
If you need a longer timeout due to a slow server, set this before calling the Connect method.
This method allows a callback to process server responses. Be advised, this can be called multiple times, rapidly, as the server responds to your requests. Be sure to add/append the responses to keep an accurate record. See the main example for better understanding.
Returns: String containing server response to your callback function.