Skip to main content

Module multiplexed

Module multiplexed 

Source
Expand description

Multiplexed client mode (TCP/TLS/Unix and WS/WSS). A single message connection is shared across all calls and subscriptions. A background task splits reader from writer.

Enumsยง

NewMsg ๐Ÿ”’

Constantsยง

OUTBOUND_BUFFER_SIZE ๐Ÿ”’
Capacity of the outbound queue feeding the writer task. Small because each in-flight call already has its own response channel, so this only buffers bursts between caller and writer.

Functionsยง

background_loop ๐Ÿ”’
build_backend_state ๐Ÿ”’
build_byte_backend ๐Ÿ”’
Build the multiplexed backend by connecting over a byte stream (TCP, TLS, or Unix) and framing it.
build_ws_backend ๐Ÿ”’
Build the multiplexed backend by connecting over a WebSocket.
connect_byte ๐Ÿ”’
connect_ws ๐Ÿ”’
handle_mux_msg ๐Ÿ”’
run_io_loop ๐Ÿ”’
send_request ๐Ÿ”’
start_io_loop ๐Ÿ”’
Spawn the reader/writer task that drives the multiplexed wire.