Package-level declarations

Types

Link copied to clipboard

In-memory ConnectionSource: offer a hub-end Connection (typically from connectionPair); accept receives it. The same accept path a real server uses, minus the wire — drives a hosted overlay end-to-end under virtual time.

Link copied to clipboard
class InMemoryRoomFabric(scope: CoroutineScope, dispatcher: CoroutineContext, authorizer: RoomAuthorizer = RoomAuthorizer.AllowAll, random: Random = Random(0))

A room-isolating in-memory fabric for tests: one server that hosts several independent rooms, and clients that join them — all over in-process connections, no network.

Functions

Link copied to clipboard
fun connectionPair(policy: DeliveryPolicy = DeliveryPolicy.Reliable, maxFrameBytes: Int? = null, enforcesFrameCeiling: Boolean = false): Pair<Connection, Connection>

Two Connections whose sends cross to each other's incoming. In-memory, no network.

Link copied to clipboard

A host/joiner Loom pair wired by one in-memory connectionPair: each end weaves a handshaking seam, exchanging Hello preambles so each side discovers the other's PeerId. For driving us.tractat.kuilt.conformance.SeamConformanceSuite against the handshaking seam.

Link copied to clipboard

A host/joiner Loom pair wired by one in-memory connectionPair: host weaves an identified seam over one end, joiner over the other. For driving SeamConformanceSuite against the LinkSeam primitive.

Link copied to clipboard
suspend fun inMemoryMeshOfSize(n: Int): List<Seam>

Build a fully-connected in-memory mesh of n peers using connectionPair links.