Establishing a connection |
To establish a connection to an FTP server, create an Ftp instance providing the required hostname, username and password arguments and then invoke the Ftp#connect method.
Example
// create new Ftp instance and connect Ftp ftp = new Ftp(hostname,username,password); ftp.connect(); |