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

Expose more socket options via getters and setters. #10

Open
lithdew opened this issue Nov 19, 2020 · 0 comments
Open

Expose more socket options via getters and setters. #10

lithdew opened this issue Nov 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@lithdew
Copy link
Owner

lithdew commented Nov 19, 2020

As of right now, Socket.get() and Socket.set() assume that the level parameter which is passed to getsockopt() / setsockopt() os SOL_SOCKET.

However, there exist other options that don't necessarily assume the level parameter is SOL_SOCKET, such as TCP_NODELAY.

To expose these other options, the idea is to replace the tag payload types of the union SocketOption with a tuple of length two comprised of the level and option parameter.

@lithdew lithdew added the enhancement New feature or request label Nov 19, 2020
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

1 participant