IWire

interface IWire

Sends and receives serialized object data over a network or a similar connection.

Functions

Link copied to clipboard
abstract fun advise(lifetime: Lifetime, entity: IRdWireable)

Adds a entity for receiving updated values of the object with the given IRdWireable.rdid. The handler is removed when the given lifetime is terminated.

Link copied to clipboard
abstract fun send(id: RdId, writer: (AbstractBuffer) -> Unit)

Sends a data block with the given id and the given writer function that can write the data.

Link copied to clipboard
abstract fun setupContexts(newContexts: ProtocolContexts)
Link copied to clipboard
abstract fun tryGetById(rdId: RdId): IRdWireable?

Properties

Link copied to clipboard
abstract val connected: IPropertyView<Boolean>
Link copied to clipboard
abstract val contexts: ProtocolContexts
Link copied to clipboard
abstract val heartbeatAlive: Property<Boolean>
Link copied to clipboard
abstract var heartbeatIntervalMs: Long

Ping's interval.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
val IWire.serverPort: Int