NetworkClient

interface NetworkClient

Interface representing a network Client which can be used to perform NetworkAction

Inheritors

Functions

Link copied to clipboard
abstract suspend fun connect(action: NetworkAction, params: String? = null)

Perform network connection with another machine.

Link copied to clipboard
abstract suspend fun disconnect()

Perform network disconnection with another machine.

Link copied to clipboard
abstract suspend fun read(): ByteArray

Read bytes from another machine.

Link copied to clipboard
abstract suspend fun send(bytes: ByteArray)

Send bytes to another machine.

abstract suspend fun send(text: String)

Send text to another machine.