Show
Ignore:
Timestamp:
06/25/09 11:54:14 (9 months ago)
Author:
arvid
Message:

refreshed html

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dotorg/trunk/html/beps/bep_0003.html

    r11097 r11165  
    4141<tr class="field"><th class="field-name">Version:</th><td class="field-body">11031</td> 
    4242</tr> 
    43 <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference external" href="http://bittorrent.org/trac/browser/dotorg/trunk/html/beps/bep_0003.rst">2008-02-28 16:43:58 -0800 (Thu, 28 Feb 2008)</a></td> 
     43<tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference" href="http://bittorrent.org/trac/browser/dotorg/trunk/html/beps/bep_0003.rst">2008-02-28 16:43:58 -0800 (Thu, 28 Feb 2008)</a></td> 
    4444</tr> 
    4545<tr class="field"><th class="field-name">Author:</th><td class="field-body">Bram Cohen &lt;bram&#32;&#97;t&#32;bittorrent.com&gt;</td> 
     
    5151<tr class="field"><th class="field-name">Created:</th><td class="field-body">10-Jan-2008</td> 
    5252</tr> 
    53 <tr class="field"><th class="field-name">Post-History:</th><td class="field-body"></td> 
     53<tr class="field"><th class="field-name">Post-History:</th><td class="field-body">24-Jun-2009, clarified the encoding of strings in torrent files</td> 
    5454</tr> 
    5555</tbody> 
     
    5959<p class="topic-title first">Contents</p> 
    6060<ul class="simple"> 
    61 <li><a class="reference internal" href="#a-bittorrent-file-distribution-consists-of-these-entities" id="id2">A BitTorrent file distribution consists of these entities:</a></li> 
    62 <li><a class="reference internal" href="#to-start-serving-a-host-goes-through-the-following-steps" id="id3">To start serving, a host goes through the following steps:</a></li> 
    63 <li><a class="reference internal" href="#to-start-downloading-a-user-does-the-following" id="id4">To start downloading, a user does the following:</a></li> 
    64 <li><a class="reference internal" href="#the-connectivity-is-as-follows" id="id5">The connectivity is as follows:</a></li> 
    65 <li><a class="reference internal" href="#metainfo-files-are-bencoded-dictionaries-with-the-following-keys" id="id6">Metainfo files are bencoded dictionaries with the following keys:</a></li> 
    66 <li><a class="reference internal" href="#tracker-get-requests-have-the-following-keys" id="id7">Tracker GET requests have the following keys:</a></li> 
    67 <li><a class="reference internal" href="#all-non-keepalive-messages-start-with-a-single-byte-which-gives-their-type" id="id8">All non-keepalive messages start with a single byte which gives their type.</a></li> 
    68 <li><a class="reference internal" href="#the-possible-values-are" id="id9">The possible values are:</a></li> 
    69 <li><a class="reference internal" href="#copyright" id="id10">Copyright</a></li> 
     61<li><a class="reference" href="#a-bittorrent-file-distribution-consists-of-these-entities" id="id2">A BitTorrent file distribution consists of these entities:</a></li> 
     62<li><a class="reference" href="#to-start-serving-a-host-goes-through-the-following-steps" id="id3">To start serving, a host goes through the following steps:</a></li> 
     63<li><a class="reference" href="#to-start-downloading-a-user-does-the-following" id="id4">To start downloading, a user does the following:</a></li> 
     64<li><a class="reference" href="#the-connectivity-is-as-follows" id="id5">The connectivity is as follows:</a></li> 
     65<li><a class="reference" href="#metainfo-files-are-bencoded-dictionaries-with-the-following-keys" id="id6">Metainfo files are bencoded dictionaries with the following keys:</a></li> 
     66<li><a class="reference" href="#tracker-get-requests-have-the-following-keys" id="id7">Tracker GET requests have the following keys:</a></li> 
     67<li><a class="reference" href="#all-non-keepalive-messages-start-with-a-single-byte-which-gives-their-type" id="id8">All non-keepalive messages start with a single byte which gives their type.</a></li> 
     68<li><a class="reference" href="#the-possible-values-are" id="id9">The possible values are:</a></li> 
     69<li><a class="reference" href="#copyright" id="id10">Copyright</a></li> 
    7070</ul> 
    7171</div> 
     
    139139<dt>info</dt> 
    140140<dd><p class="first">This maps to a dictionary, with keys described below.</p> 
    141 <p>The <tt class="docutils literal"><span class="pre">name</span></tt> key maps to a string which is the suggested name 
    142 to save the file (or directory) as. It is purely advisory.</p> 
     141<p>The <tt class="docutils literal"><span class="pre">name</span></tt> key maps to a UTF-8 encoded string which is the 
     142suggested name to save the file (or directory) as. It is purely advisory.</p> 
    143143<p><tt class="docutils literal"><span class="pre">piece</span> <span class="pre">length</span></tt> maps to the number of bytes in each piece 
    144144the file is split into. For the purposes of transfer, files are 
     
    163163the following keys:</p> 
    164164<p><tt class="docutils literal"><span class="pre">length</span></tt> - The length of the file, in bytes.</p> 
    165 <p><tt class="docutils literal"><span class="pre">path</span></tt> - A list of strings corresponding to subdirectory 
     165<p><tt class="docutils literal"><span class="pre">path</span></tt> - A list of UTF-8 encoded strings corresponding to subdirectory 
    166166names, the last of which is the actual file name (a zero length list 
    167167is an error case).</p> 
    168 <p class="last">In the single file case, the name key is the name of a file, in the 
     168<p>In the single file case, the name key is the name of a file, in the 
    169169muliple file case, it's the name of a directory.</p> 
     170<p class="last">All strings in a .torrent file that contains text must be UTF-8 
     171encoded.</p> 
    170172</dd> 
    171173</dl>