NativeConnection

class NativeConnection(scope: CoroutineScope, objectRef: jobject, env: KsrpcEnvironment<JniSerialized>) : PacketChannelBase<JniSerialized>

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, objectRef: jobject, env: KsrpcEnvironment<JniSerialized>)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val context: CoroutineContext
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun call(channelId: ChannelId, endpoint: String, data: CallData<JniSerialized>): CallData<JniSerialized>
Link copied to clipboard
open suspend override fun close()
open suspend override fun close(id: ChannelId)
Link copied to clipboard
open suspend override fun defaultChannel(): SerializedService<JniSerialized>
Link copied to clipboard
open suspend override fun onClose(onClose: suspend () -> Unit)
Link copied to clipboard
suspend fun receive(): Packet<JniSerialized>
Link copied to clipboard
open suspend override fun receiveLocked(): Packet<JniSerialized>
Link copied to clipboard
open suspend override fun registerDefault(service: SerializedService<JniSerialized>)
Link copied to clipboard
open suspend override fun registerHost(service: SerializedService<JniSerialized>): ChannelId
Link copied to clipboard
suspend fun send(packet: Packet<JniSerialized>)
Link copied to clipboard
fun sendFromJvm(packet: JniSerialized, continuation: JavaJniContinuation<Int>)
Link copied to clipboard
open suspend override fun sendLocked(packet: Packet<JniSerialized>)
Link copied to clipboard
open suspend override fun wrapChannel(channelId: ChannelId): SerializedService<JniSerialized>