[or-cvs] r11182: numerous cleanups in the control-spec. patch from tup. (tor/trunk/doc/spec)

arma at seul.org arma at seul.org
Sun Aug 19 05:04:56 UTC 2007


Author: arma
Date: 2007-08-19 01:04:56 -0400 (Sun, 19 Aug 2007)
New Revision: 11182

Modified:
   tor/trunk/doc/spec/control-spec.txt
Log:
numerous cleanups in the control-spec. patch from tup.


Modified: tor/trunk/doc/spec/control-spec.txt
===================================================================
--- tor/trunk/doc/spec/control-spec.txt	2007-08-19 04:58:55 UTC (rev 11181)
+++ tor/trunk/doc/spec/control-spec.txt	2007-08-19 05:04:56 UTC (rev 11182)
@@ -540,8 +540,8 @@
 
   Sent from the client to the server.  The format is:
       "EXTENDCIRCUIT" SP CircuitID SP
-                      ServerSpec *("," ServerSpec) SP
-                      ("purpose=" Purpose) CRLF
+                      ServerSpec *("," ServerSpec)
+                      [SP "purpose=" Purpose] CRLF
 
   This request takes one of two forms: either the CircuitID is zero, in
   which case it is a request for the server to build a new circuit according
@@ -613,7 +613,7 @@
 3.14. POSTDESCRIPTOR
 
   Sent from the client to the server. The syntax is:
-    "+POSTDESCRIPTOR" ("purpose=" Purpose) CRLF Descriptor CRLF "." CRLF
+    "+POSTDESCRIPTOR" [SP "purpose=" Purpose] CRLF Descriptor CRLF "." CRLF
 
   This message informs the server about a new descriptor. If Purpose is
   specified, it must be either "general" or "controller", else we
@@ -631,7 +631,7 @@
 3.15. REDIRECTSTREAM
 
   Sent from the client to the server. The syntax is:
-    "REDIRECTSTREAM" SP StreamID SP Address (SP Port) CRLF
+    "REDIRECTSTREAM" SP StreamID SP Address [SP Port] CRLF
 
   Tells the server to change the exit address on the specified stream.  If
   Port is specified, changes the destination port as well.  No remapping
@@ -991,7 +991,7 @@
 
   The syntax is:
     "650" SP "ORCONN" SP (ServerID / Target) SP ORStatus [ SP "REASON="
-             Reason ] [ SP "NCIRCS=" NumCircuits ]
+             Reason ] [ SP "NCIRCS=" NumCircuits ] CRLF
 
     ORStatus = "NEW" / "LAUNCHED" / "CONNECTED" / "FAILED" / "CLOSED"
 
@@ -1017,7 +1017,7 @@
 4.1.4. Bandwidth used in the last second
 
   The syntax is:
-     "650" SP "BW" SP BytesRead SP BytesWritten *(SP Type "=" Num)
+     "650" SP "BW" SP BytesRead SP BytesWritten *(SP Type "=" Num) CRLF
      BytesRead = 1*DIGIT
      BytesWritten = 1*DIGIT
      Type = "DIR" / "OR" / "EXIT" / "APP" / ...
@@ -1030,7 +1030,7 @@
 4.1.5. Log messages
 
   The syntax is:
-     "650" SP Severity SP ReplyText
+     "650" SP Severity SP ReplyText CRLF
   or
      "650+" Severity CRLF Data 650 SP "OK" CRLF
 
@@ -1039,7 +1039,7 @@
 4.1.6. New descriptors available
 
   Syntax:
-     "650" SP "NEWDESC" 1*(SP ServerID)
+     "650" SP "NEWDESC" 1*(SP ServerID) CRLF
 
 4.1.7. New Address mapping
 
@@ -1074,7 +1074,7 @@
 4.1.9. Our descriptor changed
 
   Syntax:
-     "650" SP "DESCCHANGED"
+     "650" SP "DESCCHANGED" CRLF
 
   [First added in 0.1.2.2-alpha.]
 
@@ -1405,7 +1405,7 @@
 4.1.13. Bandwidth used on an application stream
 
   The syntax is:
-     "650" SP "STREAM_BW" SP StreamID SP BytesRead SP BytesWritten
+     "650" SP "STREAM_BW" SP StreamID SP BytesRead SP BytesWritten CRLF
      BytesRead = 1*DIGIT
      BytesWritten = 1*DIGIT
 



More information about the tor-commits mailing list