Not planned
Description
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
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
the8472 commentedon Sep 3, 2024
Closing for the same reasons as the PR
devnexen commentedon Sep 3, 2024
Makes sense :-) I wish we get way more control over socket creation, it is a bit limited atm ... we will see :-)