document how the error values for closestream and closecircuit work.

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


svn:r5420
This commit is contained in:
Roger Dingledine 2005-11-18 11:17:24 +00:00
parent dfdd735902
commit a32a63d50b

View File

@ -448,10 +448,11 @@ $Id$
3.13. REDIRECTSTREAM 3.13. REDIRECTSTREAM
Sent from the client to the server. The syntax is: 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 Tells the server to change the exit address on the specified stream. If
remapping is performed on the new provided address. 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 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 after a new stream event is received, and before attaching this stream to
@ -470,6 +471,9 @@ $Id$
not used currently; Tor servers SHOULD ignore unrecognized flags. Tor may 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. 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 3.15. CLOSECIRCUIT
The syntax is: The syntax is:
@ -482,6 +486,9 @@ $Id$
Other flags may be defined in the future; Tor SHOULD ignore unrecognized Other flags may be defined in the future; Tor SHOULD ignore unrecognized
flags. 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 3.16. QUIT
Tells the server to hang up on this controller connection. This command Tells the server to hang up on this controller connection. This command