rustix::net::sockopt

Function set_socket_reuseaddr

source
pub fn set_socket_reuseaddr<Fd: AsFd>(fd: Fd, value: bool) -> Result<()>
Expand description

setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, value)—Set whether local addresses may be reused in bind.

See the module-level documentation for more.