Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10495

Re: Theads and FTP

From Daniel Pitts <newsgroup.nospam@virtualinfinity.net>
Newsgroups comp.lang.java.programmer
Subject Re: Theads and FTP
References <5ltld7tfk710d84lkmv3rvcvd4g17bmak1@4ax.com>
Message-ID <NoRCq.5932$cN1.5824@newsfe12.iad> (permalink)
Date 2011-12-04 13:14 -0800

Show all headers | View raw


On 12/3/11 8:31 PM, Roedy Green wrote:
> I have watched FTP voyager work. It seems to have at least two threads
> simultaneously uploading downloading.  You might think what's the
> point.  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.
Why not look up the RFC on the FTP protocol?

I seem to recall that it inherently uses two sockets, one for the 
commands and one for transfers.  I don't know if the command stream is 
allowed (or expected) to be active during a transfer, I haven't read the 
spec myself in quite a while.

Also, you don't necessarily need multiple threads to handle multiple 
connections.  In posix c "select()" is use to manage multiple connections.

HTH,
Daniel.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Theads and FTP Roedy Green <see_website@mindprod.com.invalid> - 2011-12-03 20:31 -0800
  Re: Theads and FTP Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-12-04 13:14 -0800
    Re: Theads and FTP Arne Vajhøj <arne@vajhoej.dk> - 2011-12-04 22:06 -0500
      Re: Theads and FTP Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-12-05 14:58 +0000
        Re: Theads and FTP Arne Vajhøj <arne@vajhoej.dk> - 2011-12-05 22:01 -0500
          Re: Theads and FTP Tom Anderson <twic@urchin.earth.li> - 2011-12-06 21:07 +0000
    Re: Theads and FTP Roedy Green <see_website@mindprod.com.invalid> - 2011-12-05 05:33 -0800
      Re: Theads and FTP Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-12-05 09:29 -0800
      Re: Theads and FTP Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-12-05 12:29 -0600
        Re: Theads and FTP Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-12-06 11:28 -0600
      Re: Theads and FTP Arne Vajhøj <arne@vajhoej.dk> - 2011-12-05 22:00 -0500
      Re: Theads and FTP Tom Anderson <twic@urchin.earth.li> - 2011-12-06 22:16 +0000
  Re: Theads and FTP Arne Vajhøj <arne@vajhoej.dk> - 2011-12-04 22:04 -0500

csiph-web