Connector

interface Connector

Functions

Link copied to clipboard
abstract suspend fun connect(endpoint: String, localDeviceName: String, remoteDeviceName: String, isIncomingConnection: Boolean, authValidator: suspend (String) -> Boolean): Result<Connection>

Establishes a connection with a remote endpoint.

Link copied to clipboard
abstract suspend fun disconnect(endpoint: String)

Disconnects from a remote endpoint

Link copied to clipboard
abstract suspend fun rejectConnection(endpoint: String)
Link copied to clipboard
abstract suspend fun sendPayload(endpoint: String, payload: ByteArray): Result<Unit>

Sends a payload to a remote endpoint