Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.3k views
in Java FTP by (160 points)
Dear All,

I am new to the edtFTPj. My application needs to reconnect to the ftp server when the network was reset or as soon as
the network comes to the previous state after a failure.

Can you provide the code which will do this reconnection part automatically whenever a network failure occurs.

- Thank You
- Venura

2 Answers

0 votes
by (162k points)
Just catch IOException, call QuitImmediately(), and go into a loop that periodically tries to reconnect until it succeeds.
0 votes
by (160 points)
I would appreciate if you can provide some real code on how to do it?

Categories

...