InMemoryLink
One of the two ways a CoAP endpoint reaches a peer, in memory, so that one test runs over both and checks that the exchanges behave the same: Datagrams on an InMemoryNetwork (RFC 7252), Connections on InMemoryConnections (RFC 8323).
server attaches what a server endpoint is built on, client what a client endpoint is, each a Side with the arguments of the endpoint's constructor; uri is the server's base URI and cut ends every way between the two at once.
val link = InMemoryLink.Connections(InMemoryConnections())
val side = link.server()
val endpoint = CoapEndpoint(backgroundScope, config, side.transport, side.connectors, side.listeners)Inheritors
Types
Connections of scheme on connections to a listener at 127.0.0.1:port, whose TLS stand-in reports clientIdentity for every client (see InMemoryConnections.listen).
Datagrams on network, through InMemorySessions on both sides, so that cut has sessions to end: the endpoints see each other as Endpoint.Secure peers whose DTLS layer authenticated identity, by default nobody, and messages go in datagrams of at most maxDatagramSize bytes.