From f6b82e438a132c1f1421072b0f5862321ab87c7c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 10 Jan 2008 22:44:53 +0000 Subject: [PATCH] added more documentation --- docs/manual.html | 20 ++++++++++++++++++++ docs/manual.rst | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/docs/manual.html b/docs/manual.html index 88d73c66c..e986501d3 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -2214,6 +2214,10 @@ struct peer_info on_parole = 0x200, seed = 0x400, optimistic_unchoke = 0x800, + writing = 0x1000, + reading = 0x2000, + waiting_write_quota = 0x4000, + waiting_read_quota = 0x8000, rc4_encrypted = 0x100000, plaintext_encrypted = 0x200000 }; @@ -2343,6 +2347,22 @@ us in return an earn an upload/unchoke slot. If it doesn't within some period of time, it will be choked and another peer will be optimistically unchoked. +writing +The peer is currently waiting for a write operation +on the socket to complete. + +reading +The peer is currently waiting for a read operation +on the socket to complete. + +waiting_write_quota +The peer is currently waiting for the bandwidth- +manager to hand out more write quota to this peer. + +waiting_read_quota +The peer is currently waiting for the bandwidth- +manager to hand out more read quota to this peer. +

source is a combination of flags describing from which sources this peer diff --git a/docs/manual.rst b/docs/manual.rst index 74c380874..2612e608c 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -2203,6 +2203,10 @@ It contains the following fields:: on_parole = 0x200, seed = 0x400, optimistic_unchoke = 0x800, + writing = 0x1000, + reading = 0x2000, + waiting_write_quota = 0x4000, + waiting_read_quota = 0x8000, rc4_encrypted = 0x100000, plaintext_encrypted = 0x200000 }; @@ -2316,6 +2320,18 @@ any combination of the enums above. The following table describes each flag: | | doesn't within some period of time, it will be choked | | | and another peer will be optimistically unchoked. | +-------------------------+-------------------------------------------------------+ +| ``writing`` | The peer is currently waiting for a write operation | +| | on the socket to complete. | ++-------------------------+-------------------------------------------------------+ +| ``reading`` | The peer is currently waiting for a read operation | +| | on the socket to complete. | ++-------------------------+-------------------------------------------------------+ +| ``waiting_write_quota`` | The peer is currently waiting for the bandwidth- | +| | manager to hand out more write quota to this peer. | ++-------------------------+-------------------------------------------------------+ +| ``waiting_read_quota`` | The peer is currently waiting for the bandwidth- | +| | manager to hand out more read quota to this peer. | ++-------------------------+-------------------------------------------------------+ __ extension_protocol.html