Function rustix::net::recv

source ·
pub fn recv<Fd: AsFd>(fd: Fd, buf: &mut [u8], flags: RecvFlags) -> Result<usize>
Expand description

recv(fd, buf, flags)—Reads data from a socket.

This takes a &mut [u8] which Rust requires to contain initialized memory. To use an uninitialized buffer, use recv_uninit.

§References