Function libax::cbindings::ax_recvfrom
source · #[no_mangle]
pub unsafe extern "C" fn ax_recvfrom(
socket_fd: c_int,
buf_ptr: *mut c_void,
len: usize,
flag: c_int,
socket_addr: *mut sockaddr,
addrlen: *mut c_uint
) -> isize
Available on crate features
net
and cbindings
only.Expand description
Receive a message on a socket and get its source address.
Return the number of bytes received if success.