CombinedRuntime

Constructors

Link copied to clipboard
fun CombinedRuntime(ioStrategy: IOStrategy, networkStrategy: NetworkStrategy)

Functions

Link copied to clipboard
open override fun input(type: IOValueType): Value

Inputs a value of type type from the host.

Link copied to clipboard
open override fun output(value: IOValue)

Outputs value to the host.

Link copied to clipboard
open override fun <T> receive(type: KType, sender: Host): T

Receives a value of type type from sender.

Link copied to clipboard
open override fun <T> send(type: KType, value: T, receiver: Host)

Sends value of type type to receiver.

Link copied to clipboard
open override fun url(host: Host): InetSocketAddress

Returns the network address of host.

Extensions

Link copied to clipboard
inline fun <T> NetworkStrategy.receive(sender: Host): T
Link copied to clipboard
inline fun <T> NetworkStrategy.send(value: T, receiver: Host)