Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.2k views
in .NET FTP by (300 points)
I have watched FTP Voyager (a gui-based FTP client) work. It seems to have at least two threads simultaneously uploading downloading. You might think what's the point, but you can be transferring while you are waiting for the server to open or close a file and send back confirmation.

I was wondering if this is done by logging on twice and having two completely independent sessions, or if FTP itself has some multithread ability, and if edtFTPnet supports any sort of threads. I saw nothing in the documentation, but then I saw nothing that said the methods were not thread-safe either.

1 Answer

0 votes
by (162k points)
Hi Roedy

I remember using your site a lot when I was learning Java in around 1997! Nice to have you post.

FTP does not have any multithreading capacity. The usual technique is to have a connection pool, each connection logging in independently (which is how it is implemented in edtFTPnet/PRO, the commercial version of edtFTPnet). edtFTPnet is not thread safe.

Categories

...