/// Call `recvfrom()` with a provided fd and buffer and check that the result is as
/// expected. An empty flag mask and a null sockaddr are used.
/// Returns an `Error` if the errno doesn't match an errno in `errnos`, or if
/// `verify_num_bytes` is `true` and the number of bytes received (the return value) does
/// not match the buffer length.
Call `recvfrom()` with a provided fd and buffer and check that the result is as
expected. An empty flag mask and a null sockaddr are used.
Call ` recvfrom () ` with a provided fd and buffer and check that the result is as expected . An empty flag mask and a null sockaddr are used .
fn simple_recvfrom_helper(
    fd: libc::c_int,
    buf: &mut [u8],
    errnos: &[libc::c_int],
    verify_num_bytes: bool,
) -> Result<libc::ssize_t, String> {
    let mut args = RecvfromArguments {
        fd: fd,
        len: buf.len(),
        buf: Some(buf),
        ..Default::default()
    };
    check_recvfrom_call(&mut args, errnos, verify_num_bytes)
}
fn simple_recvfrom_helper ( fd : libc :: c_int , buf : & mut [ u8 ] , errnos : & [ libc :: c_int ] , verify_num_bytes : bool , ) -> Result < libc :: ssize_t , String > { let mut args = RecvfromArguments { fd : fd , len : buf . len ( ) , buf : Some ( buf ) , .. Default :: default ( ) } ; check_recvfrom_call ( & mut args , errnos , verify_num_bytes ) }
Call `recvfrom()` with a provided fd and buffer and check that the result is as
expected.
Call ` recvfrom () ` with a provided fd and buffer and check that the result is as expected .
fd
libc::c_int
buf
&mut [u8]
errnos
&[libc::c_int]
verify_num_bytes
bool