8000 Expose more socket options via getters and setters. · Issue #10 · lithdew/pike · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Expose more socket options via getters and setters. #10
Open
@lithdew

Description

@lithdew

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0