[or-cvs] document how the error values for closestream and closecirc...

arma at seul.org arma at seul.org
Fri Nov 18 11:17:26 UTC 2005


Update of /home2/or/cvsroot/tor/doc
In directory moria:/home/arma/work/onion/cvs/tor/doc

Modified Files:
	control-spec.txt 
Log Message:
document how the error values for closestream and closecircuit work.

also, let redirectstream take a port, in case we want to change that too.


Index: control-spec.txt
===================================================================
RCS file: /home2/or/cvsroot/tor/doc/control-spec.txt,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- control-spec.txt	17 Nov 2005 22:01:24 -0000	1.59
+++ control-spec.txt	18 Nov 2005 11:17:24 -0000	1.60
@@ -448,10 +448,11 @@
 3.13. REDIRECTSTREAM
 
   Sent from the client to the server. The syntax is:
-    "REDIRECTSTREAM" SP StreamID SP Address CRLF
+    "REDIRECTSTREAM" SP StreamID SP Address (Port) CRLF
 
-  Tells the server to change the exit address on the specified stream.  No
-  remapping is performed on the new provided address.
+  Tells the server to change the exit address on the specified stream.  If
+  Port is specified, changes the destination port as well.  No remapping
+  is performed on the new provided address.
 
   To be sure that the modified address will be used, this event must be sent
   after a new stream event is received, and before attaching this stream to
@@ -470,6 +471,9 @@
   not used currently; Tor servers SHOULD ignore unrecognized flags.  Tor may
   hold the stream open for a while to flush any data that is pending.
 
+  Tor replies with "250 OK" on success, or a 512 if there aren't enough
+  arguments, or a 552 if it doesn't recognize the StreamID or reason.
+
 3.15. CLOSECIRCUIT
 
    The syntax is:
@@ -482,6 +486,9 @@
   Other flags may be defined in the future; Tor SHOULD ignore unrecognized
   flags.
 
+  Tor replies with "250 OK" on success, or a 512 if there aren't enough
+  arguments, or a 552 if it doesn't recognize the CircuitID.
+
 3.16. QUIT
 
   Tells the server to hang up on this controller connection. This command



More information about the tor-commits mailing list