class

MeshCoreTCPMux::Broker

Inherits Reference < Object

Namespace for the TCP multiplexer: transport, protocol validation, and per-client state.

Constructors

new(epoch : Int64, self_key : Bytes, config : MeshCoreTCPMux::Config = Config.new, now : Time::Span = Time::Span.zero, orphan : Bytes | Nil = nil, dedicated_slots : Hash(Int32, MeshCoreTCPMux::DedicatedClientSlot) = Hash(Int32, DedicatedClientSlot).new, radio_state : MeshCoreTCPMux::CompanionRadioState = CompanionRadioState.new)
Source

Instance methods

actions
Source
active
Source
admit(id : Int64, now : Time::Span, dedicated_slot_id : Int32 | Nil = nil) : Nil
Source
client_closed(id : Int64, now : Time::Span, reason = "client disconnected", category = :normal) : Nil
Source
client_frame(id : Int64, payload : Bytes, now : Time::Span) : Nil
Source
dedicated_slots
Source
drain_uncertain_frame(payload : Bytes, now : Time::Span) : Bool
Source
epoch
Source
fail_epoch(reason : String) : Nil
Source
failed
Source
orphan
Source
radio_state
Source
response_debt
Source
sessions
Source
take_actions
Source
tick(now : Time::Span) : Nil
Source
upstream_frame(payload : Bytes, now : Time::Span) : Nil
Source
write_failed(id : Int64, epoch : Int64, reason : String, now : Time::Span) : Nil
Source
written(id : Int64, epoch : Int64, write_id : Int64, now : Time::Span) : Nil
Source

Nested types