diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-22 19:36:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-22 19:36:38 +0000 |
commit | 7a0072cc1a70b42dd38c58ac20fe873c48beeace (patch) | |
tree | c3a79af68b99022e1045f62de02e0d76cfce8a82 /doc/control-spec.txt | |
parent | ec81f870181940909507fd5356fa5ecc11c7440e (diff) | |
download | tor-7a0072cc1a70b42dd38c58ac20fe873c48beeace.tar.gz tor-7a0072cc1a70b42dd38c58ac20fe873c48beeace.zip |
Specify and implement close-stream and close-circuit control messages
svn:r3814
Diffstat (limited to 'doc/control-spec.txt')
-rw-r--r-- | doc/control-spec.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/control-spec.txt b/doc/control-spec.txt index b1092eeb34..ed7ec4bfd5 100644 --- a/doc/control-spec.txt +++ b/doc/control-spec.txt @@ -417,6 +417,29 @@ the message. after a new stream event is received, and before attaching this stream to a circuit. +3.20 CLOSESTREAM (Type 0x0013) + + Sent from the client to the server. The message body contains three + fields: + Stream ID [4 octets] + Reason [1 octet] + Flags [1 octet] + + Tells the server to close the specified stream. The reason should be one + of the Tor RELAY_END reasons given in tor-spec.txt. If the LSB of the + flags field is nonzero, and the stream wants to write data, Tor tries to + hold the stream open for a while until it can be flushed. + +3.21 CLOSECIRCUIT (Type 0x0014) + + Sent from the client to the server. The message body contains two + fields: + Circuit ID [4 octets] + Flags [1 octet] + + Tells the server to close the specified circuit. If the LSB of the flags + field is nonzero, do not close the circuit unless it is unused. + 4. Implementation notes 4.1. There are four ways we could authenticate, for now: |