Establishing a connection

Top  Previous  Next

In order to begin a FXP session you must first create two Ftp instances, one representing the source server and another representing the destination server and establish connections to both.  Upon establishing a connection you may create a new Fxp instance that will be used to transfer files between the source and destination servers.

 

Example

 

// create source and destination servers

Ftp source = new Ftp(srcHostname,srcUsername,srcPassword);

Ftp destination = new Ftp(destHostname,destUsername,destPassword);

 

// establish connection

source.connect();

destination.connect();

 

// create Fxp instance

Fxp fxp = new Fxp();





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC