Function libax::cbindings::ax_sendto

source ·
#[no_mangle]
pub unsafe extern "C" fn ax_sendto(
    socket_fd: c_int,
    buf_ptr: *const c_void,
    len: usize,
    flag: c_int,
    socket_addr: *const sockaddr,
    addrlen: c_uint
) -> isize
Available on crate features net and cbindings only.
Expand description

Send a message on a socket to the address specified.

Return the number of bytes sent if success.