Changeset 10561 for dotorg/trunk_fixed/html/beps/bep_0009.rst
- Timestamp:
- 02/06/2008 10:01:00 AM (11 months ago)
- Files:
-
- 1 modified
-
dotorg/trunk_fixed/html/beps/bep_0009.rst (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotorg/trunk_fixed/html/beps/bep_0009.rst
r10528 r10561 23 23 part of the .torrent file is referred to as *the metadata*. 24 24 25 The metadata is plit up in 16kiB pieces. The pieces are indexed starting 26 from 0 for the first 16kiB of metadata. 25 The metadata is handled in bocks of 16KiB (65536 Bytes). The metadata blocks 26 are indexed starting at 0. All blocks are 16KiB except the last block which may 27 be smaller. 27 28 28 29 extension header 29 30 ================ 30 31 31 The metadata extension uses the `extension protocol`_ to advertize its32 existence. It adds the "ut_metadata" entry to the "m" dictionary in the 33 extension header hand-shake message. This identifies the message code34 used for this message. It also adds "metadata_size" to the handshake35 message (not the "m" dictionary) specifying an integer value of the32 The metadata extension uses the extension protocol (specified in `BEP 0010`_ 33 ) to advertize its existence. It adds the "ut_metadata" entry to the "m" 34 dictionary in the extension header hand-shake message. This identifies the 35 message code used for this message. It also adds "metadata_size" to the 36 handshake message (not the "m" dictionary) specifying an integer value of the 36 37 number of bytes of the metadata. 37 38 38 .. _` extension protocol`: extension_protocol.html39 .. _`BEP 0010`: http://www.bittorrent.org/beps/bep_0010.html 39 40 40 41 Example extension handshake message:: … … 120 121 121 122 <info-hash> 122 Is the info-hash encoded as base32 .123 Is the info-hash encoded as base32 [#base32]_ 123 124 124 125 ``xt`` is the only mandatory parameter. ``dn`` is the display name that may be … … 129 130 Both ``dn`` and ``tr`` are optional. 130 131 131 If no tracker is specified, the client SHOULD use the DHT to acquire peers.132 If no tracker is specified, the client SHOULD use the DHT (`BEP 0005`_) to acquire peers. 132 133 134 .. [#base32] http://www.ietf.org/rfc/rfc3548.txt 135 .. _`BEP 0005`: bep_0005.html 133 136 134 137