Skip to content

Implementing UnixSocketExt traits for solaris/illumos ; starting with the unix_socket_exclbind feature #366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
devnexen opened this issue Apr 5, 2024 · 0 comments
Labels
api-change-proposal A proposal to add or alter unstable APIs in the standard libraries T-libs-api

Comments

@devnexen
Copy link

devnexen commented Apr 5, 2024

Proposal

Problem statement

Goal is to add the possibility, for the aforementioned systems, to be able to control how the incoming connections can bind to a given socket, discarding the SO_REUSEADDR setting.

Motivating examples or use cases

#![feature(unix_socket_exclbind)]
   use std::os::solaris::net::UnixSocketExt;
    use std::os::unix::net::UnixDatagram;
    
    fn main() -> std::io::Result<()> {
        let sock = UnixDatagram::unbound()?;
        sock.set_exclbind(true).unwrap();
        Ok(())
    }

Links and related work

rust-lang/rust#123476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change-proposal A proposal to add or alter unstable APIs in the standard libraries T-libs-api
Projects
None yet
Development

No branches or pull requests

1 participant