NetworkStrategy

interface NetworkStrategy

Functions

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

Receives a value of type type from sender.

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

Sends value of type type to receiver.

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

Returns the network address of host.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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)