Admission

sealed interface Admission(source)

The outcome of MultiConnectionUDPServer.admit - the pre-accept screening decision for an incoming Iam handshake, evaluated on the listener thread before the REGISTERED reply and before any same-name supersede.

Inheritors

Types

Link copied to clipboard
data object Admitted : Admission

Accept the handshake: register the connection and reply REGISTERED.

Link copied to clipboard
data class Refused(val reason: String) : Admission

Refuse the handshake: reply REFUSED <reason> to the client, register nothing, and do not fire MultiConnectionUDPServer.onClientConnect.