Skip to main content

Module serve

Module serve 

Source
Expand description

agentmux-remote serve --stdio: file operations for srv over this process’s stdin and stdout (fsproto), one request at a time, until stdin closes (spec §6.1, §6.3). Paths are the host’s own; ~ and a relative path are under the user’s home. Nothing here opens a socket or reaches beyond what this user can already read and write.

Structs§

Server
One connection’s server: handle, plus what lasts between requests (Tower’s CPU rates, procs).

Functions§

handle
The reply to one request; home is the user’s home directory. A Procs here has no previous round, so its frame has no CPU rates: the serve loop answers it through Server instead.
home_dir
resolve
A request’s path on this host: ~ and ~/… under the home directory, a relative path too, an absolute one as given.
run
Serve requests from input, answering on output, until input ends. home is the user’s home directory (home_dir).
run_with
run with a Server made by the caller (one that can ask the session daemon for a session’s shell: Server::with_sessions).

Type Aliases§

SessionPid
A durable session’s shell PID, by session id (the daemon’s).