Expand description
The capability router shared by every transport.
A Session is the per-connection state: its open PTYs and its sysinfo
stream. Session::handle takes one decoded request plus the connection’s
Out sink and does the work — reply for RPC, or set up a background stream.
Both the Chrome stdio loop and the socket daemon drive it the same way, so
every capability is reachable from every client with no per-transport code.
Structs§
- Session
- Per-connection state. Dropping it tears down every PTY, stops the sysinfo stream, and drops the connection’s bus subscription + peer link, so a client disconnect never leaks a shell, a thread, a subscriber, or a stale link.
Functions§
- caps
- Capability tags advertised in the
helloreply so a client can feature-test. The set reflects which optional capabilities were compiled in.