Skip to main content

handle_incoming_network_data

Function handle_incoming_network_data 

Source
pub(crate) fn handle_incoming_network_data(
    tcp_receiver: &mut Option<Receiver<TcpServerMessage>>,
    tree: &mut DockState<Tab>,
)
Expand description

Drains incoming network messages (TcpServerMessage) from the TCP receiver channel and updates UI tabs or triggers connection state changes.

ยงArguments

  • tcp_receiver - Mutable reference to the optional TCP network message receiver channel.
  • tree - Mutable reference to the UI docking tree.