Package-level declarations
Types
A point-to-point, message-oriented duplex link between exactly two peers.
A transport-agnostic stream of inbound peer Connections — the "front door" of a hosted session. Unlike KtorServerLoom.nextLink(), which collapses each accepted session into a finished 2-peer us.tractat.kuilt.core.Seam, accept yields the raw Connection (a hub spoke) so a composer can bond many of them into one group view.
Raised through acceptPump's onFailure when a conn's handle does not finish within the timeout.
Admission policy for mesh links: decides, per link, whether a handshaked connection may join the mesh.
The per-link signal raised by Mesh.addLink when a handshaked link is rejected by the mesh's LinkAdmission policy. The offending connection is already closed and was never published.
A Seam over a fully-connected N-peer mesh of point-to-point Connections, with support for admitting links that arrive after construction.
Functions
Persistent, concurrent, handshake-timed accept loop. Drains source forever; each accepted Connection is handled in its OWN child coroutine under handshakeTimeout, so one conn that connects but never completes its handshake can never starve later conns — the sequential while (isActive) { handle(source.accept()) } pattern wedges on such a conn; this replaces it.
A 2-peer Seam for transports that do NOT carry identity out of band. Sends a Hello preamble as the first frame, awaits the peer's preamble, then delegates to identified over the same single collection of Connection.incoming. Suspends until the peer's preamble arrives.
Build a hub-mesh Seam — the start-empty-and-grow topology (a host admitting joiners).
A byte-transparent 2-peer Seam over a Connection whose two identities are known. broadcast == sendTo(remoteId). Woven at construction; Torn on conn EOF/error or close. Concurrent sends are serialized through an internal channel + single writer so wire order matches call order.
Build a fully-connected N-peer mesh Seam from a set of raw point-to-point connections.
Build a symmetric peer-mesh Seam — the contract-conforming N-peer fabric.