Skip to content

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

@devnexen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions