Package-level declarations
KsrpcNativeHost / ksrpcHostConnection / JniHostInit for hosting and connecting; JniSerialization, JniSer, JniSerialized, JniEncoder/JniDecoder, and type converters for the wire format; and the NativeConnection that dispatches ksrpc calls across JNI.
KsrpcNativeHost / ksrpcHostConnection / JniHostInit for hosting and connecting; JniSerialization, JniSer, JniSerialized, JniEncoder/JniDecoder, and type converters for the wire format; and the NativeConnection that dispatches ksrpc calls across JNI.
KsrpcNativeHost / ksrpcHostConnection / JniHostInit for hosting and connecting; JniSerialization, JniSer, JniSerialized, JniEncoder/JniDecoder, and type converters for the wire format; and the NativeConnection that dispatches ksrpc calls across JNI.
Types
Handle passed to a native host binding (the consumer's external fun referenced by KsrpcNativeHost.connect). It carries the per-connection JNI context that the native side reads; the consumer names the type in their binding signature and forwards the value to ksrpcHostConnection without inspecting it.
Wire-format adapter for the JNI transport. Round-trips successful payloads through JniSer; error frames are carried as CallData.Error by the routing layer (RpcMethod) and encoded natively by JniConnection, so this serializer only handles the success path.
JVM entry point for talking to a ksrpc service hosted inside a Kotlin/Native shared library.
A simple library class which helps with loading dynamic libraries stored in the JAR archive. These libraries usually contain implementation of some methods in native code (using JNI - Java Native Interface).
Properties
Functions
Hosts a single ksrpc Connection inside a Kotlin/Native shared library and hands the JVM the opaque native handle that backs it.