BasePushFileRequest

abstract class BasePushFileRequest(local: File, remotePath: String, mode: String = "0777", coroutineContext: CoroutineContext = Dispatchers.IO) : AsyncChannelRequest<Double, Unit>

Inheritors

Constructors

Link copied to clipboard
constructor(local: File, remotePath: String, mode: String = "0777", coroutineContext: CoroutineContext = Dispatchers.IO)

Functions

Link copied to clipboard
open suspend override fun close(channel: SendChannel<Double>)

Optionally send a message The transport connection is not available at this point

Link copied to clipboard
open suspend override fun handshake(socket: Socket)
Link copied to clipboard
open suspend override fun readElement(socket: Socket, sendChannel: SendChannel<Double>): Boolean

Called after the initial OKAY confirmation

Link copied to clipboard
open override fun serialize(): ByteArray

Some requests require a device serial to be passed to the request itself by means of

Link copied to clipboard
open override fun validate(): ValidationResponse
Link copied to clipboard
open suspend override fun writeElement(element: Unit, socket: Socket)

Called after each readElement

Properties

Link copied to clipboard
val channel: ReceiveChannel<Unit>?
Link copied to clipboard
Link copied to clipboard