Skip to content

Tracking Issue for socket todevice #129182

Closed as not planned
Closed as not planned
@devnexen

Description

@devnexen

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(())
}

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

    Issue actions