rustix::net

Function sendto

Source
pub fn sendto<Fd: AsFd>(
    fd: Fd,
    buf: &[u8],
    flags: SendFlags,
    addr: &SocketAddr,
) -> Result<usize>
Available on crate feature net only.
Expand description

sendto(fd, buf, flags, addr)—Writes data to a socket to a specific IP address.

§References