pike icon indicating copy to clipboard operation
pike copied to clipboard

Expose more socket options via getters and setters.

Open lithdew opened this issue 5 years ago • 0 comments

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 avatar Nov 19 '20 10:11 lithdew