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

Implement SO_ERROR for sockets #1373

Open
mkroening opened this issue Aug 31, 2024 · 0 comments
Open

Implement SO_ERROR for sockets #1373

mkroening opened this issue Aug 31, 2024 · 0 comments
Assignees

Comments

@mkroening
Copy link
Member

This SO_ERROR is commonly used to check sockets for errors, for example on non-blocking connect calls.

getsockopt(sockfd, SOL_SOCKET, SO_ERROR, ...);

This is exposed in Rust as TcpStream::take_error, TcpListener::take_error, and UdpSocket::take_error via the currently not implemented std::sys::pal::hermit::net::Socket::take_error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants