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)
SourceInstance methods
actions
Sourceactive
Sourceadmit(id : Int64, now : Time::Span, dedicated_slot_id : Int32 | Nil = nil) : Nil
Sourceclient_closed(id : Int64, now : Time::Span, reason = "client disconnected", category = :normal) : Nil
Sourceclient_frame(id : Int64, payload : Bytes, now : Time::Span) : Nil
Sourcededicated_slots
Sourcedrain_uncertain_frame(payload : Bytes, now : Time::Span) : Bool
Sourceepoch
Sourcefail_epoch(reason : String) : Nil
Sourcefailed
Sourceorphan
Sourceradio_state
Sourceresponse_debt
Sourcesessions
Sourcetake_actions
Sourcetick(now : Time::Span) : Nil
Sourceupstream_frame(payload : Bytes, now : Time::Span) : Nil
Sourcewrite_failed(id : Int64, epoch : Int64, reason : String, now : Time::Span) : Nil
Sourcewritten(id : Int64, epoch : Int64, write_id : Int64, now : Time::Span) : Nil
Source