[or-cvs] r9383: minor cleanups on the controller spec. specify a wishlist it (tor/trunk/doc)

arma at seul.org arma at seul.org
Mon Jan 22 06:12:00 UTC 2007


Author: arma
Date: 2007-01-22 01:11:56 -0500 (Mon, 22 Jan 2007)
New Revision: 9383

Modified:
   tor/trunk/doc/control-spec.txt
Log:
minor cleanups on the controller spec. specify a wishlist
item for BW events.


Modified: tor/trunk/doc/control-spec.txt
===================================================================
--- tor/trunk/doc/control-spec.txt	2007-01-22 06:07:51 UTC (rev 9382)
+++ tor/trunk/doc/control-spec.txt	2007-01-22 06:11:56 UTC (rev 9383)
@@ -774,14 +774,13 @@
   expected, and MUST tolerate more lines in an asynchronous reply than
   expected.  For instance, a client that expects a CIRC message like:
       650 CIRC 1000 EXTENDED moria1,moria2
-  should tolerate:
+  must tolerate:
       650-CIRC 1000 EXTENDED moria1,moria2 0xBEEF
       650-EXTRAMAGIC=99
       650 ANONYMITY=high
 
   If clients ask for extended events, then each event line as specified below
-  will be followed by additional extensions.  Clients that do so MUST
-  tolerate additional arguments and lines.  Additional lines will be of the
+  will be followed by additional extensions. Additional lines will be of the
   form
       "650" ("-"/" ") KEYWORD ["=" ARGUMENTS] CRLF
   Additional arguments will be of the form
@@ -866,7 +865,7 @@
 4.1.3. OR Connection status changed
 
   The syntax is:
-    "650" SP "ORCONN" SP (ServerID / Target) SP ORStatus [ SP "REASON=" 
+    "650" SP "ORCONN" SP (ServerID / Target) SP ORStatus [ SP "REASON="
              Reason ] [ SP "NCIRCS=" NumCircuits ]
 
     ORStatus = "NEW" / "LAUNCHED" / "CONNECTED" / "FAILED" / "CLOSED"
@@ -894,10 +893,16 @@
 4.1.4. Bandwidth used in the last second
 
   The syntax is:
-     "650" SP "BW" SP BytesRead SP BytesWritten
+     "650" SP "BW" SP BytesRead SP BytesWritten *(SP Type "=" Num)
      BytesRead = 1*DIGIT
      BytesWritten = 1*DIGIT
+     Type = "DIR" / "OR" / "EXIT" / "APP" / ...
+     Num = 1*DIGIT
 
+  BytesRead and BytesWritten are the totals. In Tor 0.1.x.y-alpha
+  and later, we also include a breakdown of the connection types
+  that used bandwidth this second (not implemented yet).
+
 4.1.5. Log messages
 
   The syntax is:
@@ -916,7 +921,7 @@
 
   Syntax:
      "650" SP "ADDRMAP" SP Address SP Address SP Expiry
-     Expiry = DQOUTE ISOTime DQUOTE / "NEVER"
+     Expiry = DQUOTE ISOTime DQUOTE / "NEVER"
 
   Expiry is expressed as the local time (rather than GMT).
 



More information about the tor-commits mailing list