ChanneledShellCommandRequest

open class ChanneledShellCommandRequest(val cmd: String, target: Target = NonSpecifiedTarget, socketIdleTimeout: Long? = null) : AsyncChannelRequest<String, Unit>

Inheritors

Constructors

Link copied to clipboard
constructor(cmd: String, target: Target = NonSpecifiedTarget, socketIdleTimeout: Long? = null)

Functions

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

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

Link copied to clipboard
open suspend fun handshake(socket: Socket)
Link copied to clipboard
open suspend override fun readElement(socket: Socket, sendChannel: SendChannel<String>): 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
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
val cmd: String
Link copied to clipboard
Link copied to clipboard