TelnetTransport

A duplex byte transport. Positive reads make progress; -1 is EOF, zero is only legal for a zero-length request. Write must finish the entire slice. Close must promptly interrupt a suspended read/write and be safe to call repeatedly.

Functions

Link copied to clipboard
abstract suspend fun close()
Link copied to clipboard
abstract suspend fun flush()
Link copied to clipboard

Local socket endpoint, or null when this transport has no socket metadata.

Link copied to clipboard
abstract suspend fun read(destination: ByteArray, offset: Int, length: Int): Int
Link copied to clipboard
abstract suspend fun write(source: ByteArray, offset: Int, length: Int)