Skip to content

Tracking Issue for socket todevice #129182

Not planned
Not planned
@devnexen

Description

@devnexen
Contributor

Feature gate: #![feature(unix_set_device)]

This is a tracking issue for #129172

Allows a socket to be bound to a network interface (e.g. eth0).

Public API

fn main() -> std::io::Result<()> {
   let sockid: u32 = 32;
   let socket = UnixDatagram::unbound()?;
   socket.set_device("eth0")?;
   let name = socket.device()?;
   Ok(())
}

Activity

added
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
on Aug 17, 2024
the8472

the8472 commented on Sep 3, 2024

@the8472
Member

Closing for the same reasons as the PR

devnexen

devnexen commented on Sep 3, 2024

@devnexen
ContributorAuthor

Makes sense :-) I wish we get way more control over socket creation, it is a bit limited atm ... we will see :-)

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

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @the8472@devnexen

        Issue actions

          Tracking Issue for socket todevice · Issue #129182 · rust-lang/rust