Skip to main content

send_to

Function send_to 

Source
fn send_to(
    socket: &UnixDatagram,
    path: &Path,
    data: &[u8],
    retry_until: Option<Instant>,
) -> Result<()>
Expand description

Send the data as one datagram, or as a memfd if it does not fit. A signal, like the SIGCHLD of every exited child, interrupts a send which waits, the kernel does not restart one with a timeout, so it gets retried until retry_until, if any.