Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.4k views
in Java FTP by (240 points)
Hello all,

First of all, congratulations for this FTP lib distribution !

I had a look to the source code and in my opinion the FTPClient is more a "session" than a "client".

Let me explain my point of view:
My first idea was to create an object that extends the FTPClient, in order to provide all methods from edt + mine.
Unfortunately I can't provide a method like "reconnect", that would allow to reconnect using the same FTP profile.
The reason is that the FTPControlSocket is intialized in the FTPClient constructor.

I don't understand this choice.
Why is there no public method to reopen the socket, using the same FTP profile (without the need to recreate a FTPClient) ?

Cheers,
Nico.

4 Answers

0 votes
by (162k points)
Excellent suggestion - we'll look at doing this for the next release, 1.5.1

Hello all,

Why is there no public method to reopen the socket, using the same FTP profile (without the need to recreate a FTPClient) ?

Cheers,
Nico.
0 votes
by (240 points)
we'll look at doing this for the next release, 1.5.1

Great !
If you need support for testing don't hesitate to contact me !

Nico.
0 votes
by (162k points)
Hmm, I think we already have this! Have you tried using the connect() method?

Excellent suggestion - we'll look at doing this for the next release, 1.5.1

Hello all,

Why is there no public method to reopen the socket, using the same FTP profile (without the need to recreate a FTPClient) ?

Cheers,
Nico.
0 votes
by (240 points)
Hi,

I was using 1.4.6 version and only a "login" method was available.

So it's time for me to migrate to 1.5 :)

Thanks !
Nico.

Categories

...