1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 15:18:51 -05:00
This commit is contained in:
stpeter 2011-06-01 16:19:21 -06:00
parent 3f921ac8dc
commit f935c7b826

View File

@ -4,14 +4,6 @@
%ents;
]>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<!-- TODO
- add range element to session-accept
- add multi-file
-->
<xep>
<header>
<title>Jingle File Transfer</title>
@ -32,6 +24,12 @@
<supersededby/>
<shortname>NOT_YET_ASSIGNED</shortname>
&stpeter;
<revision>
<version>0.13</version>
<date>2011-06-01</date>
<initials>psa</initials>
<remark><p>Added multi-file use case; updated spec to reflect XEP-0260 and XEP-0261; added algorithm attribute from XEP-0096; increased namespace versions from 1 to 2.</p></remark>
</revision>
<revision>
<version>0.12</version>
<date>2011-01-05</date>
@ -57,7 +55,7 @@
<remark>
<ul>
<li>Moved Jingle definitions of S5B and IBB transports to standalone documents.</li>
<li>Because the jingle-s5b and jingle-ibb transport methods are backward-incompatible, incremented protocol version number from 0 to 1 and changed namespace from urn:xmpp:jingle:apps:file-transfer:0 to urn:xmpp:jingle:apps:file-transfer:1.</li>
<li>Because the jingle-s5b and jingle-ibb transport methods are backward-incompatible, incremented protocol version number from 0 to 1 and changed namespace from urn:xmpp:jingle:apps:file-transfer:0 to urn:xmpp:jingle:apps:file-transfer:2.</li>
<li>Moved transport fallback scenario to XEP-0260.</li>
</ul>
</remark>
@ -144,9 +142,10 @@
</ol>
<p>To overcome these drawbacks, this specification defines a file transfer negotiation method that meets the following requirements:</p>
<ul>
<li>Reuse the session negotiation semantics from <cite>XEP-0166</cite>.</li>
<li>Reuse the file description format from <cite>XEP-0096</cite>.</li>
<li>Define a clear upgrade path from <cite>XEP-0096</cite> to this specification.</li>
<li>Use the session negotiation semantics from <cite>XEP-0166</cite>.</li>
<li>Use the file description format from <cite>XEP-0096</cite>.</li>
<li>Use &xep0260; and &xep0261;.</li>
<li>Define a clear upgrade path from SI File Transfer to Jingle File Transfer.</li>
</ul>
<p>Jingle file transfer is only as reliable as the transports on which it depends. In particular, SOCKS5 Bytestreams ("S5B") does not always result in NAT or firewall traversal. To work around that problem, this specification requires all implementations to support as a fallback mechanism In-Band Bytestreams ("IBB"), which usually results in a successful (if slow) file transfer.</p>
<p>Note: It is likely that a future version of this specification will also recommend implementation of a Jingle transport method that emulates the IETF's ICE-TCP technology, which is currently a work in progress (see &ice-tcp;); however, a future Jingle ICE-TCP transport method is dependent on the outcome of IETF work in this area.</p>
@ -156,24 +155,25 @@
<p>This section provides a friendly introduction to Jingle file transfer.</p>
<p>First, the party that wishes to initiate the file transfer determines the responder's capabilities (via &xep0030; or &xep0115;). Here we assume that the responder supports the following service discovery features:</p>
<ul>
<li>urn:xmpp:jingle:1 as described in XEP-0166</li>
<li>urn:xmpp:jingle:apps:file-transfer:1 as defined in this document &NSVER;</li>
<li>urn:xmpp:jingle:transports:s5b:1 as defined in &xep0260;</li>
<li>urn:xmpp:jingle:transports:ibb:0 as defined in &xep0261;</li>
<li>urn:xmpp:jingle:1 as described in <cite>XEP-0166</cite></li>
<li>urn:xmpp:jingle:apps:file-transfer:2 as defined in this document &NSVER;</li>
<li>urn:xmpp:jingle:transports:s5b:1 as defined in <cite>XEP-0260</cite></li>
<li>urn:xmpp:jingle:transports:ibb:1 as defined in <cite>XEP-0261</cite></li>
</ul>
<p>The initiator then sends a Jingle session-initiation request to a potential responder. The content-type of the request specifies two things:</p>
<ol>
<li>An application type of "urn:xmpp:jingle:apps:file-transfer:1". In particular, the &lt;description/&gt; element contains an &lt;offer/&gt; or &lt;request/&gt; element that in turn contains a &lt;file/&gt; element qualified by the existing 'http://jabber.org/protocol/si/profile/file-transfer' namespace from <cite>XEP-0096</cite>.</li>
<li>An application type of "urn:xmpp:jingle:apps:file-transfer:2". In particular, the &lt;description/&gt; element contains an &lt;offer/&gt; element or a &lt;request/&gt; element that in turn contains one or more &lt;file/&gt; elements qualified by the existing 'http://jabber.org/protocol/si/profile/file-transfer' namespace from <cite>XEP-0096</cite>.</li>
<li>An appropriate transport method. So far the suggested methods are jingle-s5b (<cite>XEP-0260</cite>) and, as a fallback, jingle-ibb (<cite>XEP-0261</cite>).</li>
</ol>
<p>Note: All attributes of the &lt;file/&gt; element are defined in XEP-0096, not in this specification.</p>
<p>Note: All attributes of the &lt;file/&gt; element are defined in <cite>XEP-0096</cite>, not in this specification.</p>
<p>In this example, the initiator is &lt;romeo@montague.lit&gt;, the responder is &lt;juliet@capulet.lit&gt;, the application type is a file offer, and the transport method is jingle-s5b.</p>
<p>The flow is as follows.</p>
<code><![CDATA[
Initiator Responder
| |
| session-initiate |
| (with S5B) |
| (with <offer/> or |
| <request/> and S5B) |
|---------------------------->|
| ack |
|<----------------------------|
@ -200,7 +200,7 @@ Initiator Responder
initiator='romeo@montague.lit/orchard'
sid='851ba2'>
<content creator='initiator' name='a-file-offer'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:1'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:2'>
<offer>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
date='1969-07-21T02:56:15Z'
@ -215,15 +215,18 @@ Initiator Responder
<transport xmlns='urn:xmpp:jingle:transports:s5b:1'
mode='tcp'
sid='vj3hs98y'>
<streamhost
host='192.168.4.1'
jid='romeo@montague.lit/orchard'
port='5086'/>
<streamhost
host='24.24.24.1'
jid='streamer.shakespeare.lit'
type='proxy'
zeroconf='_jabber.bytestreams'/>
<candidate cid='hft54dqy'
host='192.168.4.1'
jid='romeo@montague.lit/orchard'
port='5086'
priority='8257636'
type='direct'/>
<candidate cid='hutr46fe'
host='24.24.24.1'
jid='romeo@montague.lit/orchard'
port='5087'
priority='8258636'
type='direct'/>
</transport>
</content>
</jingle>
@ -238,8 +241,7 @@ Initiator Responder
to='romeo@montague.lit/orchard'
type='result'/>
]]></example>
<p>The initiator then attempts to initiate a SOCKS5 Bytestream with the responder as described in <cite>XEP-0260</cite> and <cite>XEP-0065</cite>.</p>
<p>If the responder is able to connect to one of the streamhosts, it returns a Jingle session-accept (including only the JID of the streamhost to which it connected).</p>
<p>The initiator then attempts to initiate a SOCKS5 Bytestream with the responder as described in <cite>XEP-0260</cite> and <cite>XEP-0065</cite>. In the meantime, the responder returns a Jingle session-accept. In the session-accept message, the &lt;file/&gt; element MAY contain a &lt;range/&gt; element to indicate that the receiver also supports ranged transfers as described below under <link url='#range'>Ranged Transfers</link>.</p>
<example caption="Responder sends session-accept"><![CDATA[
<iq from='juliet@capulet.lit/balcony'
id='jn2vs71g'
@ -250,7 +252,7 @@ Initiator Responder
initiator='romeo@montague.lit/orchard'
sid='851ba2'>
<content creator='initiator' name='a-file-offer'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:1'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:2'>
<offer>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
name='test.txt'
@ -262,14 +264,32 @@ Initiator Responder
</file>
</offer>
</description>
<transport xmlns='urn:xmpp:jingle:transports:s5b:1'>
<streamhost-used jid='streamer.shakespeare.lit'/>
<transport xmlns='urn:xmpp:jingle:transports:s5b:1'
mode='tcp'
sid='vj3hs98y'>
<candidate cid='ht567dq'
host='192.169.1.10'
jid='juliet@capulet.lit/balcony'
port='6539'
priority='8257636'
type='direct'/>
<candidate cid='hr65dqyd'
host='134.102.201.180'
jid='juliet@capulet.lit/balcony'
port='16453'
priority='7929856'
type='assisted'/>
<candidate cid='grt654q2'
host='2001:638:708:30c9:219:d1ff:fea4:a17d'
jid='juliet@capulet.lit/balcony'
port='6539'
priority='8257606'
type='direct'/>
</transport>
</content>
</jingle>
</iq>
]]></example>
<p>Note: Inclusion of the &lt;range/&gt; child of the &lt;file/&gt; element indicates that the receiver also supports ranged transfers as described below under <link url='#range'>Ranged Transfers</link>.</p>
<p>The initiator acknowledges the Jingle session-accept.</p>
<example caption="Initiator acknowledges session-accept"><![CDATA[
<iq from='romeo@montague.lit/orchard'
@ -277,8 +297,35 @@ Initiator Responder
to='juliet@capulet.lit/balcony'
type='result'/>
]]></example>
<p>Once one client has successfully created a connection, it sends a &lt;candidate-used/&gt; element to the peer inside a Jingle transport-info message. If a client receives a candidate-used notification it SHOULD continue trying to connect to candidates sent by its peer if it has not tried all candidates with a higher priority than the one successfully used by the peer.</p>
<example caption="Initiator sends candidate-used in Jingle transport-info"><![CDATA[
<iq from='romeo@montague.lit/orchard'
id='hjdi8'
to='juliet@capulet.lit/balcony'
type='set'>
<jingle xmlns='urn:xmpp:jingle:1'
action='transport-info'
initiator='romeo@montague.lit/orchard'
sid='a73sjjvkla37jfea'>
<content creator='initiator' name='ex'>
<transport xmlns='urn:xmpp:jingle:transports:s5b:1'
sid='vj3hs98y'>
<candidate-used cid='hr65dqyd'/>
</transport>
</content>
</jingle>
</iq>
]]></example>
<p>The peer immediately acknowledges receipt.</p>
<example caption="Responder acknowledges candidate-used message"><![CDATA[
<iq from='juliet@capulet.lit/balcony'
id='hjdi8'
to='romeo@montague.lit/orchard'
type='result'/>
]]></example>
<p>(See <cite>XEP-0260</cite> for further details.)</p>
<p>Now the parties exchange the file using the negotiated transport (here, SOCKS5 Bytestreams).</p>
<p>Once the transfer is completed, either party can terminate the Jingle session; preferably this is done by the entity that receives the file to ensure that the complete file (up to the advertised size) has been received.</p>
<p>Once the transfer is completed, either party can acknowledge completion (see <link url='#multi'>Sending Multiple Files</link>) or terminate the Jingle session; preferably this is done by the entity that receives the file to ensure that the complete file (up to the advertised size) has been received.</p>
<example caption="Receiver sends session-terminate"><![CDATA[
<iq from='juliet@capulet.lit/balcony'
id='og61bvs98'
@ -293,12 +340,12 @@ Initiator Responder
</jingle>
</iq>
]]></example>
<p>For a description of the transport fallback scenario (from SOCK5 Bytestreams to In-Band Bytestreams), refer to <cite>XEP-0260</cite>.</p>
<p>For a description of the transport fallback scenario (from SOCKS5 Bytestreams to In-Band Bytestreams), refer to <cite>XEP-0260</cite>.</p>
</section1>
<section1 topic='Communicating the Hash' anchor='hash'>
<p>At any time during the lifetime of the file transfer session, the hosting entity can communicate the hash of the file to the receiving entity. This is done by sending a session-info message containing a &lt;hash/&gt; element qualified by the 'urn:xmpp:jingle:apps:file-transfer:info:1' namespace. The XML character data of this &lt;hash/&gt; element has the same meaning as the 'hash' attribute of the &lt;file/&gt; element qualified by the 'http://jabber.org/protocol/si/profile/file-transfer' namespace from <cite>XEP-0096</cite>; that is, it is a checksum of the file contents produced in accordance with the hashing function specified by the 'algo' attribute, which MUST be one of the functions listed in the &ianahashes;. For historical reasons and for backward-compatibility with <cite>XEP-0096</cite>, the 'algo' attribute defaults to a value of "md5".</p>
<example caption="Receiver sends session-terminate"><![CDATA[
<p>At any time during the lifetime of the file transfer session, the hosting entity (i.e., the entity where the file resides) can communicate the hash of the file to the receiving entity. This is done by sending a session-info message containing a &lt;hash/&gt; element qualified by the 'urn:xmpp:jingle:apps:file-transfer:info:2' namespace. The XML character data of this &lt;hash/&gt; element has the same meaning as the 'hash' attribute of the &lt;file/&gt; element qualified by the 'http://jabber.org/protocol/si/profile/file-transfer' namespace from <cite>XEP-0096</cite>; that is, it is a checksum of the file contents produced in accordance with the hashing function specified by the 'algo' attribute, which MUST be one of the functions listed in the &ianahashes;. For historical reasons and for backward-compatibility with <cite>XEP-0096</cite>, the 'algo' attribute defaults to a value of "md5".</p>
<example caption="Hosting entity sends hash in session-info"><![CDATA[
<iq from='romeo@montague.lit/orchard'
id='kqh401b5'
to='juliet@capulet.lit/balcony'
@ -307,14 +354,16 @@ Initiator Responder
action='session-info'
initiator='romeo@montague.lit/orchard'
sid='a73sjjvkla37jfea'>
<hash xmlns='urn:xmpp:jingle:apps:file-transfer:info:1'>552da749930852c69ae5d2141d3766b1</hash>
<hash xmlns='urn:xmpp:jingle:apps:file-transfer:info:2'>
552da749930852c69ae5d2141d3766b1
</hash>
</jingle>
</iq>
]]></example>
</section1>
<section1 topic='Requesting a File' anchor='request'>
<p>If the entity that hosts a file has advertised its existence (or if a previous file transfer attempt has failed and the receiver would like to initiate another attempt), the entity that wishes to receive the file can "pull" the file from the hosting entity. This is done by sending a Jingle session-initiate to the hosting entity, including a &DESCRIPTION; element qualified by the 'urn:xmpp:jingle:apps:file-transfer:1' namespace and containing a &lt;request/&gt; element that defines the requested file.</p>
<p>If the entity that hosts a file has advertised its existence (or if a previous file transfer attempt has failed and the receiver would like to initiate another attempt), the entity that wishes to receive the file can "pull" the file from the hosting entity. This is done by sending a Jingle session-initiate to the hosting entity, including a &DESCRIPTION; element qualified by the 'urn:xmpp:jingle:apps:file-transfer:2' namespace and containing a &lt;request/&gt; element that defines the requested file.</p>
<example caption="Receiver requests hosted file"><![CDATA[
<iq from='juliet@capulet.lit/balcony'
id='wsn361c3'
@ -325,7 +374,7 @@ Initiator Responder
initiator='romeo@montague.lit/orchard'
sid='uj3b2'>
<content creator='initiator' name='a-file-request'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:1'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:2'>
<request>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
hash='552da749930852c69ae5d2141d3766b1'/>
@ -334,17 +383,31 @@ Initiator Responder
<transport xmlns='urn:xmpp:jingle:transports:s5b:1'
mode='tcp'
sid='xig361fj'>
<streamhost
host='24.24.24.2'
jid='proxy.capulet.lit'
type='proxy'/>
<candidate cid='ht567dq'
host='192.169.1.10'
jid='juliet@capulet.lit/balcony'
port='6539'
priority='8257636'
type='direct'/>
<candidate cid='hr65dqyd'
host='134.102.201.180'
jid='juliet@capulet.lit/balcony'
port='16453'
priority='7929856'
type='assisted'/>
<candidate cid='grt654q2'
host='2001:638:708:30c9:219:d1ff:fea4:a17d'
jid='juliet@capulet.lit/balcony'
port='6539'
priority='8257606'
type='direct'/>
</transport>
</content>
</jingle>
</iq>
]]></example>
<p>The parties would then complete a session negotiation flow similar to that outlined above for offering a file.</p>
<p>Note: If the requesting entity knows the hash of the file, then it can include only that metadata in its request. If not, the requesting entity needs to include enough metadata to uniquely identify the file, such as the date, name, and size. For similar considerations, see &rfc5547;.</p>
<p>Note: If the requesting entity knows the hash of the file, it can include only that metadata in its request. If not, the requesting entity needs to include enough metadata to uniquely identify the file, such as the date, name, and size. For similar considerations, see &rfc5547;.</p>
</section1>
<section1 topic='Ranged Transfers' anchor='range'>
@ -360,7 +423,7 @@ Initiator Responder
initiator='romeo@montague.lit/orchard'
sid='uj3b2'>
<content creator='initiator' name='a-file-request'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:1'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:2'>
<request>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
hash='552da749930852c69ae5d2141d3766b1'>
@ -371,10 +434,24 @@ Initiator Responder
<transport xmlns='urn:xmpp:jingle:transports:s5b:1'
mode='tcp'
sid='xig361fj'>
<streamhost
host='24.24.24.2'
jid='proxy.capulet.lit'
type='proxy'/>
<candidate cid='ht567dq'
host='192.169.1.10'
jid='juliet@capulet.lit/balcony'
port='6539'
priority='8257636'
type='direct'/>
<candidate cid='hr65dqyd'
host='134.102.201.180'
jid='juliet@capulet.lit/balcony'
port='16453'
priority='7929856'
type='assisted'/>
<candidate cid='grt654q2'
host='2001:638:708:30c9:219:d1ff:fea4:a17d'
jid='juliet@capulet.lit/balcony'
port='6539'
priority='8257606'
type='direct'/>
</transport>
</content>
</jingle>
@ -383,8 +460,82 @@ Initiator Responder
<p>Alternatively, the sender could initiate a new file transfer, indicating that it supports ranged transfers, and in the Jingle session-accept message the receiver could indicate that it wants the transfer to begin at the specified offset.</p>
</section1>
<section1 topic='Sending Multiple Files' anchor='multi'>
<p>The initiator can send multiple files by including multiple &lt;file/&gt; elements in its session-initiate message.</p>
<example caption="Initiator sends session-initiate with multiple files"><![CDATA[
<iq from='romeo@montague.lit/orchard'
id='bv2gs986'
to='juliet@capulet.lit/balcony'
type='set'>
<jingle xmlns='urn:xmpp:jingle:1'
action='session-initiate'
initiator='romeo@montague.lit/orchard'
sid='h2va419i'>
<content creator='initiator' name='a-file-offer'>
<description xmlns='urn:xmpp:jingle:apps:file-transfer:2'>
<offer>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
date='2011-06-01T15:58:15Z'
hash='a749930852c69ae5d2141d3766b1552d'
name='somefile.txt'
size='1234'/>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
date='2011-06-01T15:58:15Z'
hash='930852c69ae5d2141d3766b1552da749'
name='anotherfile.txt'
size='2345'/>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
date='2011-06-01T15:58:15Z'
hash='52c69ae5d2141d3766b1552da7499308'
name='yetanotherfile.txt'
size='3456'/>
</offer>
</description>
<transport xmlns='urn:xmpp:jingle:transports:s5b:1'
mode='tcp'
sid='vj3hs98y'>
<candidate cid='hft54dqy'
host='192.168.4.1'
jid='romeo@montague.lit/orchard'
port='5086'
priority='8257636'
type='direct'/>
<candidate cid='hutr46fe'
host='24.24.24.1'
jid='romeo@montague.lit/orchard'
port='5087'
priority='8258636'
type='direct'/>
</transport>
</content>
</jingle>
</iq>
]]></example>
<p>The parties would negotiate the file transfer session as previously described.</p>
<p>After exchange of the first file, the recipient SHOULD send a Jingle session-info message indicating receipt of the complete file.</p>
<example caption="Receiver sends ack in session-info"><![CDATA[
<iq from='juliet@capulet.lit/balcony'
id='jp2ba614'
to='romeo@montague.lit/orchard'
type='set'>
<jingle xmlns='urn:xmpp:jingle:1'
action='session-info'
initiator='romeo@montague.lit/orchard'
sid='a73sjjvkla37jfea'>
<received xmlns='urn:xmpp:jingle:apps:file-transfer:info:2'>
<file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
hash='a749930852c69ae5d2141d3766b1552d'/>
</received>
</jingle>
</iq>
]]></example>
<p>The hosting entity SHOULD NOT wait for arrival of the &lt;received/&gt; acknowledgement before starting to send the next file in its list.</p>
<p>After the recipient has received all of the files, it SHOULD send a final acknowledgement and then terminate the session.</p>
<p class='box'>OPEN ISSUE: Provide a way for the hosting entity to add more files to the original "manifest"?</p>
</section1>
<section1 topic='Use of Jingle Actions' anchor='jingle'>
<p>Jingle file transfer uses only a few of the actions defined in XEP-0166. Jingle usage is summarized in the following table.</p>
<p>Jingle file transfer uses only a few of the actions defined in <cite>XEP-0166</cite>. Jingle usage is summarized in the following table.</p>
<table caption='Jingle Actions Used in File Transfer'>
<tr>
<th>Action</th>
@ -424,7 +575,7 @@ Initiator Responder
</tr>
<tr>
<td>session-info</td>
<td>Communication of the file hash</td>
<td>Communicating the file hash</td>
</tr>
<tr>
<td>session-initiate</td>
@ -440,7 +591,7 @@ Initiator Responder
</tr>
<tr>
<td>transport-info</td>
<td>Unused</td>
<td>Used in SOCKS5 Bytestreams</td>
</tr>
<tr>
<td>transport-reject</td>
@ -461,12 +612,12 @@ Initiator Responder
<p>An application MAY present transport methods in any order, except that the Jingle In-Band Bytestreams Transport Method MUST be the lowest preference.</p>
</section2>
<section2 topic='Migration from XEP-0096' anchor='impl-migration'>
<p>Support for Jingle file transfer can be determined through discovery of the 'urn:xmpp:jingle:apps:file-transfer:1' namespace &VNOTE;, via either service discovery (<cite>XEP-0030</cite>) or entity capabilities (<cite>XEP-0115</cite>). If the initiator knows that the responder supports Jingle file transfer, it SHOULD first attempt negotiation using Jingle rather than SI.</p>
<p>Support for Jingle file transfer can be determined through discovery of the 'urn:xmpp:jingle:apps:file-transfer:2' namespace &VNOTE;, via either service discovery (<cite>XEP-0030</cite>) or entity capabilities (<cite>XEP-0115</cite>). If the initiator knows that the responder supports Jingle file transfer, it SHOULD first attempt negotiation using Jingle rather than Stream Initiation.</p>
</section2>
</section1>
<section1 topic='Security Considerations' anchor='security'>
<p>For historical reasons and for backward-compatibility with XEP-0096, the hashing algorithm used in computing the file checksum defaults to MD5. It is RECOMMENDED for implementations to use stronger hashing algorithms.</p>
<p>For historical reasons and for backward-compatibility with <cite>XEP-0096</cite>, the hashing algorithm used in computing the file checksum defaults to MD5. It is RECOMMENDED for implementations to use stronger hashing algorithms.</p>
<p>In order to secure the data stream, implementations SHOULD use encryption methods appropriate to the transport method being used. For example, end-to-end encryption can be negotiated over either SOCKS5 Bytestreams or In-Band Bytestreams as described in <cite>XEP-0260</cite> and <cite>XEP-0261</cite>.</p>
<p>Refer to <cite>XEP-0047</cite>, <cite>XEP-0065</cite>, <cite>XEP-0096</cite>, <cite>XEP-0260</cite>, and <cite>XEP-0261</cite> for related security considerations.</p>
</section1>
@ -479,7 +630,7 @@ Initiator Responder
<section2 topic='Protocol Namespaces' anchor='registrar-ns'>
<p>This specification defines the following XML namespace:</p>
<ul>
<li>urn:xmpp:jingle:apps:file-transfer:1</li>
<li>urn:xmpp:jingle:apps:file-transfer:2</li>
</ul>
<p>Upon advancement of this specification from a status of Experimental to a status of Draft, the &REGISTRAR; shall add the foregoing namespace to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.</p>
</section2>
@ -506,8 +657,8 @@ Initiator Responder
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:jingle:apps:file-transfer:1'
xmlns='urn:xmpp:jingle:apps:file-transfer:1'
targetNamespace='urn:xmpp:jingle:apps:file-transfer:2'
xmlns='urn:xmpp:jingle:apps:file-transfer:2'
elementFormDefault='qualified'>
<xs:import
@ -538,19 +689,27 @@ Initiator Responder
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:jingle:apps:file-transfer:info:1'
xmlns='urn:xmpp:jingle:apps:file-transfer:info:1'
targetNamespace='urn:xmpp:jingle:apps:file-transfer:info:2'
xmlns='urn:xmpp:jingle:apps:file-transfer:info:2'
elementFormDefault='qualified'>
<xs:element name='hash' type='xs:string'/>
<xs:element name='received' type='fileTransferElementType'/>
<xs:complexType name='fileTransferElementType'>
<xs:sequence xmlns:ft='http://jabber.org/protocol/si/profile/file-transfer'>
<xs:element ref='ft:file'/>
</xs:sequence>
</xs:complexType>
</xs:schema>
]]></code>
</section2>
</section1>
<section1 topic='Acknowledgements' anchor='ack'>
<p>Thanks to Steffen Larsen, Marcus Lundblad, Joe Maissel, Ali Sabil, Matthew Wild, and Jiří Zárevúcky for their feedback.</p>
<p>Thanks to Diana Cionoiu, Olivier Crête, Justin Karneges, Steffen Larsen, Yann Leboulanger, Marcus Lundblad, Joe Maissel, Robert McQueen, Ali Sabil, Sjoerd Simons, Will Thompson, Matthew Wild, and Jiří Zárevúcky for their feedback.</p>
</section1>
</xep>