[jdev] Multiple/parallel file transfers

Anthony Ortiz anthonypaulo at gmail.com
Fri Mar 25 21:27:58 CST 2005


I saw the fast-mode article last month while researching how to
implement the bytestream file xfer and I thought it was interesting to
look into at a later time. Since you've reminded me, I have a
question... given the following :

  <iq from="bob" to="alice" type="set" id="s2">
    <query xmlns="http://jabber.org/protocol/bytestreams" sid="mySID">
      <streamhost jid="bob" host="private.bob" port="8000"/>
      <streamhost jid="bob" host="public.bob" port="8000"/>
    </query>
  </iq>

  <iq from="alice" to="bob" type="result" id="s2">
    <query xmlns="http://jabber.org/protocol/bytestreams">
      <streamhost-used jid="bob"/>
    </query>
  </iq>

How do you specify which streamhost was accepted in the reply?? All I
can see is that the streamhost with jid "bob" was accepted, but that
could have been private.bob or public.bob. You do mention something
about the initiator throwing out an extra <CR> (extra??? so there were
previous ones???) into the socket stream... does this mean that the
target is to expect a carriage return from the initiator in the
streamhost of choice?

cheers!

Anthony

On Fri, 25 Mar 2005 03:16:28 -0800, Justin Karneges
<justin-keyword-jabber.093179 at affinix.com> wrote:
> On Friday 25 March 2005 02:58 am, George Hazan wrote:
> > I can't find any recommendation in the JEPs how to make multiple file
> > transfers (i.e. when a user needs to send several files). Should I send
> > them one by one, reestablishing the bytestream every time?
> 
> Currently yes, this is the only standard way to do it.  There was a JEP to do
> "Tree Transfer", but it was not well received, mainly because it doesn't
> solve the bytestream reestablishment problem.
> 
> > How can I establish a passive file transfer,
> > when a listener is being created by a target, not by an initiator?
> 
> The JSF Council was not interested in this feature (also known as
> role-reversal), so I created it as an extension and optimized it beyond what
> we had originally discussed.  It is documented below as Fast Mode:
>   http://delta.affinix.com/specs/stream.html
> 
> Psi has been using this for over a year now without problems.
> 
> > Can I use the
> > same bytestream for all files? Can I send file[s] in parallel, inside
> > one/many sessions/streams?
> 
> The same URL above also describes a Multiplex mode, however it is just an
> idea, I've never implemented it nor tried pushing it as a standard (yet).
> 
> -Justin
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
>



More information about the JDev mailing list