Package-level declarations

Implementation of ksrpc channels that communicate using POSIX sockets or STD IN/OUT.

Implementation of ksrpc channels that communicate using POSIX sockets or STD IN/OUT.

Implementation of ksrpc channels that communicate using POSIX sockets or STD IN/OUT.

Implementation of ksrpc channels that communicate using POSIX sockets or STD IN/OUT.

Implementation of ksrpc channels that communicate using POSIX sockets or STD IN/OUT.

Implementation of ksrpc channels that communicate using POSIX sockets or STD IN/OUT.

Implementation of ksrpc channels that communicate using POSIX sockets or STD IN/OUT.

Functions

Link copied to clipboard
suspend fun Pair<ByteReadChannel, ByteWriteChannel>.asConnection(env: KsrpcEnvironment<String>): Connection<String>

Create a Connection for the given input/output channel.

Create a Connection that starts the process and uses the Process.getInputStream and Process.getOutputStream as the streams for communication

Helper that calls into Pair.asConnection.

Link copied to clipboard
fun initTermios(fd: Int = STDIN_FILENO, old: CPointer<termios>)
Link copied to clipboard
fun posixFileReadChannel(fd: Int): ByteReadChannel

Creates a ByteReadChannel that will read bytes from the specified file descriptor fd.

Link copied to clipboard
fun posixFileWriteChannel(fd: Int): ByteWriteChannel

Creates a ByteWriteChannel that will write bytes to the specified file descriptor fd.

Link copied to clipboard
fun resetTermios(fd: Int = STDIN_FILENO, old: CPointer<termios>)
Link copied to clipboard
expect fun termios.setICanon()
Link copied to clipboard
inline fun withoutIcanon(fd: Int = STDIN_FILENO, callback: () -> Unit)
Link copied to clipboard
expect inline suspend fun withStdInOut(ksrpcEnvironment: KsrpcEnvironment<String>, withConnection: (Connection<String>) -> Unit)

Create a Connection that communicates over the std in/out streams of this process.

actual inline suspend fun withStdInOut(ksrpcEnvironment: KsrpcEnvironment<String>, withConnection: (Connection<String>) -> Unit)

Create a Connection that communicates over the std in/out streams of this process.

actual inline suspend fun withStdInOut(ksrpcEnvironment: KsrpcEnvironment<String>, withConnection: (Connection<String>) -> Unit)
actual inline suspend fun withStdInOut(ksrpcEnvironment: KsrpcEnvironment<String>, withConnection: (Connection<String>) -> Unit)