Function arceos_posix_api::sys_recvfrom

source ·
pub unsafe fn sys_recvfrom(
    socket_fd: c_int,
    buf_ptr: *mut c_void,
    len: size_t,
    flag: c_int,
    socket_addr: *mut sockaddr,
    addrlen: *mut socklen_t
) -> ssize_t
Available on crate feature net only.
Expand description

Receive a message on a socket and get its source address.

Return the number of bytes received if success.