JvmNioAsyncClient

Constructors

Link copied to clipboard
constructor(client: AsynchronousSocketChannel? = null)

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

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

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

Write len bytes from buffer starting at offset