recvfrom_raw

Function recvfrom_raw 

Source
pub fn recvfrom_raw(
    fd: &impl AsRawFd,
    buf: &mut [MaybeUninit<u8>],
    flags: u32,
    addr: *mut u8,
    addr_len: *mut isize,
) -> Result<usize>
Expand description

Receives a message from a socket.

ยงSafety

addr must be a NULL pointer or a pointer to a struct sockaddr like structure. If addr is a NULL pointer, then addr_len must be a NULL pointer as well. Otherwise, it should be a pointer to an isize containing the size of the structure that addr points to.