arceos_api::net

Function ax_udp_recv

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

Receives a single datagram message on the UDP socket from the remote address to which it is connected. On success, returns the number of bytes read.