arceos_api::net

Function ax_udp_send_to

Source
pub fn ax_udp_send_to(
    socket: &AxUdpSocketHandle,
    buf: &[u8],
    addr: SocketAddr,
) -> AxResult<usize>
Available on crate feature net only.
Expand description

Sends data on the UDP socket to the given address. On success, returns the number of bytes written.