interface BoundDatagramSocket : ASocket, ABoundSocket, AReadable, DatagramReadWriteChannel
Represents a bound datagram socket
abstract val localAddress: <ERROR CLASS>
Local socket address. Could throw an exception if no address bound yet. |
|
abstract val socketContext: Job
Represents a socket lifetime, completes at socket closure |
abstract fun attachForReading(channel: ByteChannel): WriterJob
Attach channel for reading so incoming bytes appears in the attached channel. Only one channel could be attached |
|
open fun dispose(): Unit |
val ASocket.isClosed: Boolean
Check if the socket is closed |
suspend fun ASocket.awaitClosed(): Unit
Await until socket close |
|
fun AReadable.openReadChannel(): ByteReadChannel
Open a read channel, could be done only once |