ConnectedDatagramSocket
interface ConnectedDatagramSocket :
ASocket,
ABoundSocket,
AConnectedSocket,
ReadWriteSocket,
DatagramReadWriteChannel
Represents a connected datagram socket.
Inherited Properties
abstract val localAddress: NetworkAddress Local socket address. Could throw an exception if no address bound yet. |
|
abstract val remoteAddress: NetworkAddress Remote socket address. Could throw an exception if the peer is not yet connected or already disconnected. |
|
abstract val socketContext: Job Represents a socket lifetime, completes at socket closure |
Inherited Functions
open fun dispose(): Unit |
Extension Properties
Check if the socket is closed |
Extension Functions
Await until socket close |
|
fun AReadable.openReadChannel(): ByteReadChannel Open a read channel, could be done only once |
|
fun AWritable.openWriteChannel( Open a write channel, could be opened only once |