BeaconWireHandler

fun interface BeaconWireHandler(source)

SAM type for "do something with this incoming beacon".

Called once per validated beacon datagram by the multicast receive loop. Implementations should return quickly and dispatch heavier work onto a coroutine — the receive loop is shared by every peer in the LAN and must not block.

Functions

Link copied to clipboard
abstract fun handleIncomingWire(wire: NodeWire)

Process a single incoming peer beacon. Should not block.