Skip to main content

announce_addr

Function announce_addr 

Source
pub fn announce_addr(addr_file: &str, listener: &TcpListener) -> Result<()>
Expand description

Announce a bound loopback listener’s address through addr_file — the discovery handshake for the built-in test mocks (--internal-mock-llm, --internal-mock-mcp-http): the harness passes a fresh path, waits for the file to exist, then reads host:port from it. Written atomically (tmp + rename) so a waiter never observes a half-written address.