// SPDX-License-Identifier: AGPL-3.0-only
//! AF_VSOCK transport for enclave/microVM intelligence. RFC 0006 §transports.
//! [feature: vsock]
//!
//! For agentd running inside a microVM / confidential enclave, reaching a model
//! gateway on the host across the virtio-socket boundary — no TCP stack exposed
//! in the guest. `VsockStream` is `Read + Write`, so it drops into the
//! transport-agnostic HTTP client ([`crate::http`]).
use io;
use Duration;
use VsockStream;
/// Connect to `(cid, port)` over vsock, applying read/write timeouts so a
/// wedged host gateway can't hang a request forever.