pub fn get_launch_activate_udp_socket(name: &str, nonblock: bool) -> io::Result<UdpSocket> {
    let fd = get_launch_activate_socket(name)?;
    debug!("created UDP socket from launch activate socket {}", fd);
    let socket = unsafe { UdpSocket::from_raw_fd(fd) };
    if nonblock {
        socket.set_nonblocking(true)?;
    }
    Ok(socket)
}
Get a macOS launch activate socket as a `UdpSocket`
crates/shadowsocks-service/src/net/launch_activate_socket.rs