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 acceptfilter #121891

Open
devnexen opened this issue Mar 2, 2024 · 0 comments
Open

Tracking Issue for acceptfilter #121891

devnexen opened this issue Mar 2, 2024 · 0 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC 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 Mar 2, 2024

Feature gate: #![feature(acceptfilter)]

This is a tracking issue for #121881

Public API

use std::os::unix::net::UnixStream;

fn main() -> std::io::Result<()> {
  let sock = UnixStream::connect("/tmp/sock");
  sock.set_acceptfilter(&c"http");
  Ok(())
}
use std::os::unix::net::UnixDatagram;

fn main() -> std::io::Result<()> {
  let sock = UnixDatagram::unbound();
  sock.set_acceptfilter(&c"data");
  Ok(())
}
@devnexen devnexen added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC 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

1 participant