ktor-network / io.ktor.network.sockets / DatagramReadWriteChannel

DatagramReadWriteChannel

interface DatagramReadWriteChannel : DatagramReadChannel, DatagramWriteChannel

A channel for sending and receiving datagrams

Inherited Properties

incoming

abstract val incoming: ReceiveChannel<Datagram>

Incoming datagrams channel

outgoing

abstract val outgoing: SendChannel<Datagram>

Datagram outgoing channel.

Inherited Functions

receive

open suspend fun receive(): Datagram

Receive a datagram.

send

open suspend fun send(datagram: Datagram): Unit

Send datagram.

Inheritors

BoundDatagramSocket

interface BoundDatagramSocket : ASocket, ABoundSocket, AReadable, DatagramReadWriteChannel

Represents a bound datagram socket

ConnectedDatagramSocket

interface ConnectedDatagramSocket : ASocket, ABoundSocket, AConnectedSocket, ReadWriteSocket, DatagramReadWriteChannel

Represents a connected datagram socket.