AReadable

interface AReadable

Represent a readable socket

Functions

attachForReading

abstract fun attachForReading(
    channel: ByteChannel
): WriterJob

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

Extension Functions

openReadChannel

fun AReadable.openReadChannel(): ByteReadChannel

Open a read channel, could be done only once

Inheritors

BoundDatagramSocket

interface BoundDatagramSocket : 
    ASocket,
    ABoundSocket,
    AReadable,
    DatagramReadWriteChannel

Represents a bound datagram socket

ReadWriteSocket

interface ReadWriteSocket : ASocket, AReadable, AWritable

Represents both readable and writable socket