aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-08-19 05:04:56 +0000
committerRoger Dingledine <arma@torproject.org>2007-08-19 05:04:56 +0000
commit455862db1a0addbd7edb8876a5c837c862cd5938 (patch)
tree25952739483d8c76bd0cd5f9ee7b2d3fc5c840a0
parentc88803d924abab3c8ea62597e506a0a896e5bc1d (diff)
downloadtor-455862db1a0addbd7edb8876a5c837c862cd5938.tar
tor-455862db1a0addbd7edb8876a5c837c862cd5938.tar.gz
numerous cleanups in the control-spec. patch from tup.
svn:r11182
-rw-r--r--doc/spec/control-spec.txt20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/spec/control-spec.txt b/doc/spec/control-spec.txt
index 9263eb465..d19965456 100644
--- a/doc/spec/control-spec.txt
+++ b/doc/spec/control-spec.txt
@@ -540,8 +540,8 @@ $Id$
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 @@ $Id$
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 @@ $Id$
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 @@ $Id$
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 @@ $Id$
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 @@ $Id$
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 @@ $Id$
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 @@ $Id$
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 @@ $Id$
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