#[no_mangle]
pub unsafe extern "C" fn 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.