CoroutineChannel

class CoroutineChannel : StateHolder<CoroutineChannelState> , Closeable

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
suspend fun connect(address: InetSocketAddress, timeout: Int = 0, keepAlive: Boolean = false)
Link copied to clipboard
fun enableCompression()
Link copied to clipboard
suspend fun enableTLS(context: SSLContext)
Link copied to clipboard
open override fun flow(): Flow<CoroutineChannelState>
Link copied to clipboard
suspend fun flush()
Link copied to clipboard
suspend fun read(buffer: ByteBuffer): Int
Link copied to clipboard
open override fun state(): CoroutineChannelState
Link copied to clipboard
suspend fun write(chainedBuffer: ChainedByteBuffer)
suspend fun write(buffer: ByteBuffer): Int