Changeset 10595 for dotorg/trunk_fixed/html/beps/bep_0009.html
- Timestamp:
- 02/07/2008 04:37:01 PM (11 months ago)
- Files:
-
- 1 modified
-
dotorg/trunk_fixed/html/beps/bep_0009.html (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotorg/trunk_fixed/html/beps/bep_0009.html
r10540 r10595 38 38 <tr class="field"><th class="field-name">Title:</th><td class="field-body">Metadata Extension</td> 39 39 </tr> 40 <tr class="field"><th class="field-name">Version:</th><td class="field-body">105 28</td>41 </tr> 42 <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference external" href="https://svn.bittorrent.com/trac.cgi/browser/dotorg/trunk/html/beps/bep_0009.rst">2008-02-0 4 16:10:30 -0800 (Mon, 04Feb 2008)</a></td>40 <tr class="field"><th class="field-name">Version:</th><td class="field-body">10561</td> 41 </tr> 42 <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference external" href="https://svn.bittorrent.com/trac.cgi/browser/dotorg/trunk/html/beps/bep_0009.rst">2008-02-06 10:01:00 -0800 (Wed, 06 Feb 2008)</a></td> 43 43 </tr> 44 44 <tr class="field"><th class="field-name">Author:</th><td class="field-body">Greg Hazel <greg at bittorrent.com>, Arvid Norberg <arvid at bittorrent.com></td> … … 58 58 <p class="topic-title first">Contents</p> 59 59 <ul class="simple"> 60 <li><a class="reference internal" href="#metadata" id="id 4">metadata</a></li>61 <li><a class="reference internal" href="#extension-header" id="id 5">extension header</a></li>62 <li><a class="reference internal" href="#extension-message" id="id 6">extension message</a><ul>63 <li><a class="reference internal" href="#request" id="id 7">request</a></li>64 <li><a class="reference internal" href="#data" id="id 8">data</a></li>65 <li><a class="reference internal" href="#reject" id="id 9">reject</a></li>60 <li><a class="reference internal" href="#metadata" id="id7">metadata</a></li> 61 <li><a class="reference internal" href="#extension-header" id="id8">extension header</a></li> 62 <li><a class="reference internal" href="#extension-message" id="id9">extension message</a><ul> 63 <li><a class="reference internal" href="#request" id="id10">request</a></li> 64 <li><a class="reference internal" href="#data" id="id11">data</a></li> 65 <li><a class="reference internal" href="#reject" id="id12">reject</a></li> 66 66 </ul> 67 67 </li> 68 <li><a class="reference internal" href="#magnet-uri-format" id="id1 0">magnet URI format</a></li>69 <li><a class="reference internal" href="#id 1" id="id11">References</a></li>68 <li><a class="reference internal" href="#magnet-uri-format" id="id13">magnet URI format</a></li> 69 <li><a class="reference internal" href="#id2" id="id14">References</a></li> 70 70 </ul> 71 71 </div> … … 81 81 file. This part can be validated by the info-hash. In this document, that 82 82 part of the .torrent file is referred to as <em>the metadata</em>.</p> 83 <p>The metadata is plit up in 16kiB pieces. The pieces are indexed starting 84 from 0 for the first 16kiB of metadata.</p> 83 <p>The metadata is handled in bocks of 16KiB (65536 Bytes). The metadata blocks 84 are indexed starting at 0. All blocks are 16KiB except the last block which may 85 be smaller.</p> 85 86 </div> 86 87 <div class="section" id="extension-header"> 87 88 <h1>extension header</h1> 88 <p>The metadata extension uses the <a class="reference external" href="extension_protocol.html">extension protocol</a> <a class="footnote-reference" href="#id2" id="id3">[1]</a> to advertize its89 existence. It adds the "ut_metadata" entry to the "m" dictionary in the 90 extension header hand-shake message. This identifies the message code91 used for this message. It also adds "metadata_size" to the handshake92 message (not the "m" dictionary) specifying an integer value of the89 <p>The metadata extension uses the extension protocol (specified in <a class="reference external" href="http://www.bittorrent.org/beps/bep_0010.html">BEP 0010</a> <a class="footnote-reference" href="#id3" id="id4">[2]</a> 90 ) to advertize its existence. It adds the "ut_metadata" entry to the "m" 91 dictionary in the extension header hand-shake message. This identifies the 92 message code used for this message. It also adds "metadata_size" to the 93 handshake message (not the "m" dictionary) specifying an integer value of the 93 94 number of bytes of the metadata.</p> 94 95 <p>Example extension handshake message:</p> … … 164 165 <dl class="docutils"> 165 166 <dt><info-hash></dt> 166 <dd>Is the info-hash encoded as base32 .</dd>167 <dd>Is the info-hash encoded as base32 <a class="footnote-reference" href="#base32" id="id1">[1]</a></dd> 167 168 </dl> 168 169 <p><tt class="docutils literal"><span class="pre">xt</span></tt> is the only mandatory parameter. <tt class="docutils literal"><span class="pre">dn</span></tt> is the display name that may be … … 171 172 may be included.</p> 172 173 <p>Both <tt class="docutils literal"><span class="pre">dn</span></tt> and <tt class="docutils literal"><span class="pre">tr</span></tt> are optional.</p> 173 <p>If no tracker is specified, the client SHOULD use the DHT to acquire peers.</p> 174 <p>If no tracker is specified, the client SHOULD use the DHT (<a class="reference external" href="bep_0005.html">BEP 0005</a> <a class="footnote-reference" href="#id5" id="id6">[3]</a>) to acquire peers.</p> 175 <table class="docutils footnote" frame="void" id="base32" rules="none"> 176 <colgroup><col class="label" /><col /></colgroup> 177 <tbody valign="top"> 178 <tr><td class="label"><a class="fn-backref" href="#id1">[1]</a></td><td><a class="reference external" href="http://www.ietf.org/rfc/rfc3548.txt">http://www.ietf.org/rfc/rfc3548.txt</a></td></tr> 179 </tbody> 180 </table> 174 181 <!-- Local Variables: 175 182 mode: indented-text … … 180 187 End: --> 181 188 </div> 182 <div class="section" id="id 1">189 <div class="section" id="id2"> 183 190 <h1>References</h1> 184 <table class="docutils footnote" frame="void" id="id 2" rules="none">191 <table class="docutils footnote" frame="void" id="id3" rules="none"> 185 192 <colgroup><col class="label" /><col /></colgroup> 186 193 <tbody valign="top"> 187 <tr><td class="label"><a class="fn-backref" href="#id3">[1]</a></td><td><a class="reference external" href="extension_protocol.html">extension_protocol.html</a></td></tr> 194 <tr><td class="label"><a class="fn-backref" href="#id4">[2]</a></td><td><a class="reference external" href="http://www.bittorrent.org/beps/bep_0010.html">http://www.bittorrent.org/beps/bep_0010.html</a></td></tr> 195 </tbody> 196 </table> 197 <table class="docutils footnote" frame="void" id="id5" rules="none"> 198 <colgroup><col class="label" /><col /></colgroup> 199 <tbody valign="top"> 200 <tr><td class="label"><a class="fn-backref" href="#id6">[3]</a></td><td><a class="reference external" href="bep_0005.html">bep_0005.html</a></td></tr> 188 201 </tbody> 189 202 </table>