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

Support more tcp socket option #213

Open
escoffier opened this issue Apr 21, 2024 · 0 comments
Open

Support more tcp socket option #213

escoffier opened this issue Apr 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@escoffier
Copy link

escoffier commented Apr 21, 2024

TcpSocketOptions can set IPV6_V6ONLY only right now. In our use case, we would like to set IP_TRANSPARENT flag. Some other users may have needs to set socket options toos.

#[derive(Clone, Debug)]
pub struct TcpSocketOptions {
/// IPV6_V6ONLY flag (if true, limit socket to IPv6 communication only).
/// This is mostly useful when binding to `[::]`, which on most Unix distributions
/// will bind to both IPv4 and IPv6 addresses by default.
pub ipv6_only: bool,
// TODO: allow configuring reuseaddr, backlog, etc. from here?
}

Describe the solution you'd like

provide more flag for TcpSocketOptions

@andrewhavck andrewhavck added the enhancement New feature or request label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants