aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-proto/src/stream/cmdcheck.rs
Commit message (Collapse)AuthorAgeFilesLines
* proto: Move cmdchecker under top-level stream module.Gabriela Moldovan2025-10-161-0/+55
| | | | | The CmdChecker will be used by relays too, so I am moving it to the shared `stream` module.
* proto: Move the `stream` module under `client` (breaking).Gabriela Moldovan2025-08-181-55/+0
| | | | | | | | | | | | The `stream` module is client-specific, for the most part, so I am moving it under `client`. Later on, we will factor out the parts that can be shared with the relay implementation. Note: this is a breaking change as the deleted `stream` module was `pub`. We could've kept the module and reexported from it the public types from `tor_proto::client::stream`, but I think it's better to have this `client` namespacing, because it makes the separation between the client and relay parts clearer.
* proto: Rename the `tunnel` module to `client`.Gabriela Moldovan2025-08-181-2/+2
| | | | | | The implementation from `tunnel` is client-specific, so we are renaming the module accordingly. The more generic parts will be pulled into a separate module in a future commit.
* tor-proto: handle XON/XOFF messagesSteven Engler2025-07-071-2/+2
|
* tor-proto: Add a tunnel module.David Goulet2025-02-201-2/+2
| | | | | | | | | | | | | Move StreamTarget to the tunnel module and the circuit module. From now on streams will be implemented on tunnels, not circuits. This moves `StreamTarget` to the tunnel module. A future change will replace `ClientCirc` with `ClientTunnel` inside `StreamTarget`. This is mostly code motion, best reviewed with `--color-moved`. Signed-off-by: David Goulet <[email protected]>
* Rename UnparsedRelayCell -> UnparsedRelayMsgJim Newsome2024-03-121-3/+3
| | | | | For consistency with the terminology proposed in https://gitlab.torproject.org/tpo/core/torspec/-/issues/253
* proto: Tweak documentation and names around CmdChecker.Nick Mathewson2023-02-271-6/+14
|
* tor-proto: Introduce CmdChecker, and define it for our streams.Nick Mathewson2023-02-171-0/+47
The role of CmdChecker is to verify that messages are arriving at the appropriate sequence on a stream, with respect to the other messages that have been received. Once the stream becomes half-closed, the CmdChecker is also in charge of consuming incoming messages on the stream and making sure that they are well-formed.