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:

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.
-
-
+

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
  • -