Expand description
Cross-platform local-socket server: accept connections, dispatch wire requests, write wire responses.
Uses interprocess to abstract the platform IPC primitive:
AF_UNIX socket files on Unix, named pipes on Windows. Each
connection is a separate Tokio task. Per-primitive handlers live
in submodules; this file owns the listener loop, the
per-connection reader, and the dispatch table.
Functions§
- dispatch
- Translate a parsed
Requestinto a wire response (warnings + envelope + body, terminated by\nper the protocol spec — the caller adds the final blank line). - serve
- Bind a local socket at
pathand servedaemonon it. On Unixpathis the AF_UNIX socket file; on Windows it’s used to derive a stable namespaced pipe name (seecrate::transport::path_to_name). Loops untilshutdownresolves.