From d891214358693085105309cdc8c998cbfbf96433 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 20 May 2006 17:59:17 +0000 Subject: [PATCH] *** empty log message *** --- docs/client_test.html | 128 +++++++++++++++++- docs/extension_protocol.html | 9 +- docs/extension_protocol.rst | 1 + docs/index.html | 136 +++++++++++++++++-- docs/manual.html | 36 ++--- docs/manual.rst | 30 +++-- docs/udp_tracker_protocol.html | 230 ++++++++++++++++++++++++-------- src/http_tracker_connection.cpp | 4 +- src/torrent.cpp | 2 +- src/udp_tracker_connection.cpp | 4 +- 10 files changed, 472 insertions(+), 108 deletions(-) diff --git a/docs/client_test.html b/docs/client_test.html index 9e95166b7..061fb0d67 100644 --- a/docs/client_test.html +++ b/docs/client_test.html @@ -3,9 +3,129 @@ - + client_test example program - +
@@ -26,7 +146,7 @@ client and has the metadata (.torrent file). The metadata extension in libtorrent will then download it from that peer (or from those peers if more than one).

While running, the client_test sample will look something like this:

-
client_test.png
+client_test.png

The commands available in the client are:

    @@ -47,7 +167,7 @@ been requested from which peer. The green background means that it has been downloaded. It shows that fast peers will prefer to request whole pieces instead of dowloading parts of pieces. It may make it easier to determine which peer that sent the corrupt data if a piece fails the hash test.

    -
    unicode_support.png
    +unicode_support.png

    There's unicode support on linux, MacOS X and Windows.

diff --git a/docs/extension_protocol.html b/docs/extension_protocol.html index 897736e41..604d9b41c 100644 --- a/docs/extension_protocol.html +++ b/docs/extension_protocol.html @@ -148,14 +148,13 @@ bittorrent protocol or clients that don't support this extension or the one you want to add.

To advertise to other clients that you support, one bit from the reserved bytes is used.

-
-
Right now, two bits have known usages.
-
    +

    Right now, two bits have known usages.

    +
    +
    • [7] & 1 is used by Mainline for DHT support
    • [7] & 2 is used by XBT client for peer-exchange support
    -
-
+

The bit selected for the extension protocol is bit 20 from the right (counting starts at 0). So (reserved_byte[5] & 0x10) is the expression to use for checking if the client supports extended messaging.

diff --git a/docs/extension_protocol.rst b/docs/extension_protocol.rst index 8eb6ea3a8..02281a0d6 100644 --- a/docs/extension_protocol.rst +++ b/docs/extension_protocol.rst @@ -14,6 +14,7 @@ To advertise to other clients that you support, one bit from the reserved bytes is used. Right now, two bits have known usages. + * [7] & 1 is used by Mainline for DHT support * [7] & 2 is used by XBT client for peer-exchange support diff --git a/docs/index.html b/docs/index.html index bde040035..443462d08 100755 --- a/docs/index.html +++ b/docs/index.html @@ -3,9 +3,129 @@ - + libtorrent - +
@@ -39,8 +159,8 @@ library and not a full featured client, although it comes with a working
  • to be very easy to use
  • -