axlibc

Function recv

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn recv(
    socket_fd: c_int,
    buf_ptr: *mut c_void,
    len: size_t,
    flag: c_int,
) -> ssize_t
Available on crate feature net only.
Expand description

Receive a message on a socket.

Return the number of bytes received if success.