[−][src]Function linux::syscall::recvfrom
pub fn recvfrom(
sockfd: c_int,
buf: &mut [d8],
flags: c_int,
src_addr: Option<&mut [d8]>,
addrlen: &mut usize
) -> ssize_t
Receives data on a socket.
[argument, sockfd] The socket on which to receive.
[argument, buf] The buffer into which the received data is placed.
[argument, flags] Flags used while receiving.
[argument, src_addr] An optional place where the address of the sender is placed.
[argument, addrlen] A place where the length of the senders address is placed.
[return_value] Returns the number of bytes received or an error value.
= See also
- link:man:recvfrom(2)