Skip to main content

Module transport

Module transport 

Source
Expand description

Network-agnostic transport seam for the caliband protocol (ADR 0051).

Turns an Endpoint (+ optional TLS + optional bearer token) into a duplex byte stream. The NDJSON protocol rides on top of a BoxConn unchanged — TLS and the token preamble are framing below it. Ported from caliban-supervisor::transport; prospero needs the client connect path in production, and the server [Listener] path only for FakeCaliband.

Structs§

ConnectSpec
How to dial a connection.
TlsClient
Client-side TLS material.

Traits§

Conn
A duplex byte stream over any transport family.

Functions§

connect
Dial a connection per spec: TLS handshake when configured, then the bearer-token preamble when a token is configured.
tls_client_from_pem
Build client TLS trusting ca_pem, verifying the server presents server_name.

Type Aliases§

BoxConn
Boxed duplex connection handed to the NDJSON protocol layer.