ReadWriteSocket

interface ReadWriteSocket : ASocket, AReadable, AWritable

Represents both readable and writable socket

Functions

Link copied to clipboard
abstract fun attachForReading(channel: ByteChannel): WriterJob

Attach channel for reading so incoming bytes appears in the attached channel. Only one channel could be attached

Link copied to clipboard
abstract fun attachForWriting(channel: ByteChannel): ReaderJob

Attach channel for writing so bytes written to the attached channel will be transmitted Only one channel could be attached

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
open override fun dispose()

Properties

Link copied to clipboard
abstract val socketContext: Job

Represents a socket lifetime, completes at socket closure

Inheritors

Link copied to clipboard
Link copied to clipboard