pub fn recvfrom<Fd: AsFd, Buf: Buffer<u8>>(
fd: Fd,
buf: Buf,
flags: RecvFlags,
) -> Result<(Buf::Output, usize, Option<SocketAddrAny>)>
Expand description
recvfrom(fd, buf, flags, addr, len)
—Reads data from a socket and
returns the sender address.
In addition to the Buffer::Output
return value, this also returns the
number of bytes received before any truncation due to the
RecvFlags::TRUNC
flag.