ReadWriteSocket
Represents both readable and writable socket
Inherited Properties
abstract val socketContext: Job Represents a socket lifetime, completes at socket closure |
Inherited Functions
abstract fun attachForReading( Attach channel for reading so incoming bytes appears in the attached channel. Only one channel could be attached |
|
abstract fun attachForWriting( Attach channel for writing so bytes written to the attached channel will be transmitted Only one channel could be attached |
|
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 |
Inheritors
interface ConnectedDatagramSocket : Represents a connected datagram socket. |
|
interface Socket : Represents a connected socket |