interface AReadable
Represent a readable socket
abstract fun attachForReading(channel: ByteChannel): WriterJob
Attach channel for reading so incoming bytes appears in the attached channel. Only one channel could be attached |
fun AReadable.openReadChannel(): ByteReadChannel
Open a read channel, could be done only once |
interface BoundDatagramSocket : ASocket, ABoundSocket, AReadable, DatagramReadWriteChannel
Represents a bound datagram socket |
|
interface ReadWriteSocket : ASocket, AReadable, AWritable
Represents both readable and writable socket |