ktor-network / io.ktor.network.sockets / AWritable

AWritable

interface AWritable

Represents a writable socket

Functions

attachForWriting

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

Extension Functions

openWriteChannel

fun AWritable.openWriteChannel(autoFlush: Boolean = false): ByteWriteChannel

Open a write channel, could be opened only once

Inheritors

AConnectedSocket

interface AConnectedSocket : AWritable

Represent a connected socket

ReadWriteSocket

interface ReadWriteSocket : ASocket, AReadable, AWritable

Represents both readable and writable socket