channel

open override fun channel(mode: DeliveryMode): UdpChannel(source)

The delivery-mode-scoped handle for this connection. Each DeliveryMode has its own sequence space and its own inbound handler - binding a handler on one mode's UdpChannel never disturbs the other's.

The default implementation returns a working DeliveryMode.UNRELIABLE handle over push/actuateBytes, and, for DeliveryMode.RELIABLE_ORDERED, a handle whose operations fail with UnsupportedOperationException - only the production UDPConnection carries a reliable channel.

Return

the UdpChannel for mode

Parameters

mode

which delivery guarantee to get a handle for