InMemoryTransport
A DatagramTransport attached to an InMemoryNetwork at localEndpoint. Obtain one from InMemoryNetwork.attach.
send copies the datagram, so neither side can change what the other sees. After close, send throws and receive throws ClosedReceiveChannelException once queued events are drained.
Functions
Link copied to clipboard
Hands event to the receiver of this transport as if it had come from the network, or from a DTLS layer (for DatagramEvent.SessionEnded). Tests use it to simulate what the network cannot.
Link copied to clipboard