socket2::socket

Function set_common_flags

Source
fn set_common_flags(socket: Socket) -> Result<Socket>
Expand description

Set FD_CLOEXEC and NOSIGPIPE on the socket for platforms that need it.