pub fn encode_udp_data( node_id: &str, frame: &Frame, ) -> Result<Vec<u8>, FrameError>
Encode one UDP datagram: magic + node_id + one DATA frame. Used for PTY/stream bulk so control stays on TCP.