fn simple_sendto_helper(
    fd: libc::c_int,
    buf: &[u8],
    errnos: &[libc::c_int],
    verify_num_bytes: bool,
) -> Result<libc::ssize_t, String> {
    let args = SendtoArguments {
        fd: fd,
        len: buf.len(),
        buf: Some(buf),
        ..Default::default()
    };

    check_sendto_call(&args, errnos, verify_num_bytes)
}
/// Call `sendto()` 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 sent (the return value) does
/// not match the buffer length.
Call `sendto()` 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 ` sendto () ` 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_sendto_helper(
    fd: libc::c_int,
    buf: &[u8],
    errnos: &[libc::c_int],
    verify_num_bytes: bool,
) -> Result<libc::ssize_t, String> {
    let args = SendtoArguments {
        fd: fd,
        len: buf.len(),
        buf: Some(buf),
        ..Default::default()
    };
    check_sendto_call(&args, errnos, verify_num_bytes)
}
fn simple_sendto_helper ( fd : libc :: c_int , buf : & [ u8 ] , errnos : & [ libc :: c_int ] , verify_num_bytes : bool , ) -> Result < libc :: ssize_t , String > { let args = SendtoArguments { fd : fd , len : buf . len ( ) , buf : Some ( buf ) , .. Default :: default ( ) } ; check_sendto_call ( & args , errnos , verify_num_bytes ) }
Call `sendto()` with a provided fd and buffer and check that the result is as
expected.
Call ` sendto () ` with a provided fd and buffer and check that the result is as expected .
fd
libc::c_int
buf
&[u8]
errnos
&[libc::c_int]
verify_num_bytes
bool
fd
libc::c_int
buf
&[u8]
errnos
&[libc::c_int]
verify_num_bytes
bool