Skip to main content

encode_udp_data

Function encode_udp_data 

Source
pub fn encode_udp_data(
    node_id: &str,
    frame: &Frame,
) -> Result<Vec<u8>, FrameError>
Expand description

Encode one UDP datagram: magic + node_id + one DATA frame. Used for PTY/stream bulk so control stays on TCP.