Connection

interface Connection(source)

One accepted socket, already past the TLS handshake setup when the listener is TLS.

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun read(buffer: ByteArray, offset: Int, length: Int): Int

Reads up to length bytes; -1 at the end of the stream, on an error or on a timeout.

Link copied to clipboard
abstract fun write(buffer: ByteArray, offset: Int, length: Int): Boolean