arceos_api::net

Function ax_udp_peek_from

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

Receives a single datagram message on the UDP socket, without removing it from the queue.