Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for socket todevice #129182

Closed
devnexen opened this issue Aug 17, 2024 · 2 comments
Closed

Tracking Issue for socket todevice #129182

devnexen opened this issue Aug 17, 2024 · 2 comments
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@devnexen
Copy link
Contributor

devnexen commented Aug 17, 2024

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(())
}
@devnexen devnexen added C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Aug 17, 2024
@the8472
Copy link
Member

the8472 commented Sep 3, 2024

Closing for the same reasons as the PR

@the8472 the8472 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
@devnexen
Copy link
Contributor Author

devnexen commented Sep 3, 2024

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
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants