Skip to content

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

Description

@devnexen

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ACP-acceptedAPI Change Proposal is accepted (seconded with no objections)api-change-proposalA proposal to add or alter unstable APIs in the standard libraries

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions