DarwinSecureAsyncClient

Constructors

Link copied to clipboard
constructor(socket: DarwinSSLSocket)

Properties

Link copied to clipboard
open override val address: AsyncSocketAddress

The address of the socket

Link copied to clipboard
open override val connected: Boolean

Is the socket connected

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun close()

Close the socket

Link copied to clipboard
open suspend override fun connect(host: String, port: Int)
Link copied to clipboard
open suspend override fun read(buffer: ByteArray, offset: Int, len: Int): Int

Read len bytes into buffer starting at offset

open suspend fun read(): Int
Link copied to clipboard
open suspend override fun write(buffer: ByteArray, offset: Int, len: Int)

Write len bytes from buffer starting at offset

open suspend fun write(byte: Int)